OMAP: DSS2: Taal: Check taal_power_on() return value in taal_resume()

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>
This commit is contained in:
Jani Nikula 2010-04-12 10:25:21 +03:00 committed by Tomi Valkeinen
parent 2c2fc15124
commit fed44b7af8
1 changed files with 4 additions and 1 deletions

View 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);