mirror of https://gitee.com/openkylin/linux.git
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:
parent
2c2fc15124
commit
fed44b7af8
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue