OMAP: DSS2: Taal: Fix DSI bus locking problem

If omapdss_dsi_display_enable() failed the DSI bus was left locked. Also
if the operation failed later omapdss_dsi_display_disable() would get
called without holding the bus lock.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
This commit is contained in:
Ville Syrjälä 2010-03-10 18:24:54 +01:00 committed by Tomi Valkeinen
parent a3201a0eae
commit 6df37271f8
1 changed files with 1 additions and 2 deletions

View File

@ -702,10 +702,9 @@ static int taal_power_on(struct omap_dss_device *dssdev)
return 0;
err:
dsi_bus_unlock();
omapdss_dsi_display_disable(dssdev);
err0:
dsi_bus_unlock();
if (dssdev->platform_disable)
dssdev->platform_disable(dssdev);