Commit fed44b7a authored by Jani Nikula's avatar Jani Nikula Committed by Tomi Valkeinen

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

Change state only if power on was succesful.
Signed-off-by: default avatarJani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@nokia.com>
parent 2c2fc151
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment