Skip to content

Commit

Permalink
OMAP: DSS2: Fix error path in omap_dsi_update()
Browse files Browse the repository at this point in the history
In the case of an error on calling dsi_update_screen_l4(), a
successful framedone callback is still sent to panel-taal. An
error should be returned to taal_update() instead.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Aug 5, 2010
1 parent 451cfbf commit e9c31af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2920,7 +2920,12 @@ int omap_dsi_update(struct omap_dss_device *dssdev,

dsi_update_screen_dispc(dssdev, x, y, w, h);
} else {
dsi_update_screen_l4(dssdev, x, y, w, h);
int r;

r = dsi_update_screen_l4(dssdev, x, y, w, h);
if (r)
return r;

dsi_perf_show("L4");
callback(0, data);
}
Expand Down

0 comments on commit e9c31af

Please sign in to comment.