OMAPFB: disable overlays on driver removal
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 9 Jan 2014 11:46:20 +0000 (13:46 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 13 Jan 2014 10:19:56 +0000 (12:19 +0200)
commitb52a6e7fb61682db1ae309c5fa51b5c04168838d
tree48d204506a0ddef8c1185969bd74cdc61a4dbea6
parent40359a9b08cc51362a4dddfa2beb3b59e24e2b53
OMAPFB: disable overlays on driver removal

When omapfb module is removed, the driver will turn off all the displays
it manages. However, it leaves the overlays enabled. While the overlays
are obviously disabled as the displays are disabled, it causes issues
when the driver module is loaded again, as at that point the overlays
are still enabled on the hardware level. The result is that even if the
SW thinks overlays are disabled, they are actually enabled.

Fix this by making sure the overlays are disabled at module removal.

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