OMAPFB: move dssdev->sync call out from omapfb_realloc_fbmem
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 7 Dec 2012 14:47:28 +0000 (16:47 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 7 Dec 2012 14:51:36 +0000 (16:51 +0200)
commit636f4e1b45c6204c6912cefa2bdbe22e00784a43
treea3b93ff53f91c714e9817c75de0060c3827a91c7
parent09645d258334c650cb65a93f55d9acdcd4420d44
OMAPFB: move dssdev->sync call out from omapfb_realloc_fbmem

Currently omapfb_realloc_fbmem() calls dssdev->sync to ensure any
possible frame update is finished. This patch moves the call to
dssdev->sync from omapfb_realloc_fbmem to the callers of
omapfb_realloc_fbmem.

This keeps dssdev related calls out from omapfb_realloc_fbmem, which
makes sense as the function should only deal with fb memory. Also, this
seems to avoid a lockdep warning about possible circular locking.
However, the exact reason for that warning is still unclear.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/omapfb/omapfb-ioctl.c
drivers/video/omap2/omapfb/omapfb-main.c
drivers/video/omap2/omapfb/omapfb-sysfs.c