From: Archit Taneja Date: Wed, 14 Jul 2010 12:11:50 +0000 (+0200) Subject: OMAP: DSS2: Fix error path in omap_dsi_update() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e9c31afcffe3df90ebac343611b2f0177bf3cbe4;p=linux-beck.git OMAP: DSS2: Fix error path in omap_dsi_update() 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 Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index a6e0f647554b..b3fa3a7db911 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c @@ -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); }