]> git.karo-electronics.de Git - linux-beck.git/commitdiff
OMAP: DSS2: Taal: Check taal_power_on() return value in taal_resume()
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Mon, 12 Apr 2010 07:25:21 +0000 (10:25 +0300)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Tue, 3 Aug 2010 12:18:48 +0000 (15:18 +0300)
Change state only if power on was succesful.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
drivers/video/omap2/displays/panel-taal.c

index 137bad23a64e96efbb75813db85735dcb89d26b8..19b5975a2312d8e7e32345b702a2f6f23343eabb 100644 (file)
@@ -882,7 +882,10 @@ static int taal_resume(struct omap_dss_device *dssdev)
 
        dsi_bus_unlock();
 
-       dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
+       if (r)
+               dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
+       else
+               dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
 
        mutex_unlock(&td->lock);