OMAP: DSS2: don't power off a panel twice
authorStanley.Miao <stanley.miao@windriver.com>
Fri, 3 Sep 2010 03:03:48 +0000 (05:03 +0200)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Fri, 22 Oct 2010 20:21:14 +0000 (23:21 +0300)
commit18016e35d448d35739f8640b51476709c07e95db
treef01f76bd471332308d6e7c22af6310386437d121
parent41814cfc01b059df33011d929837558c22f3c0e0
OMAP: DSS2: don't power off a panel twice

If we blank the panel by
echo 1 > /sys/devices/platform/omapfb/graphics/fb0/blank

Then, we reboot the sytem, the kernel will crash at
drivers/video/omap2/dss/core.c:323

This is because the panel is closed twice. Now check the state of a dssdev
to forbid a panel is power on or power off twice.

Signed-off-by: Stanley.Miao <stanley.miao@windriver.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
drivers/video/omap2/displays/panel-acx565akm.c
drivers/video/omap2/displays/panel-generic.c
drivers/video/omap2/displays/panel-sharp-lq043t1dg01.c
drivers/video/omap2/displays/panel-sharp-ls037v7dw01.c
drivers/video/omap2/displays/panel-toppoly-tdo35s.c
drivers/video/omap2/displays/panel-tpo-td043mtea1.c