]> git.karo-electronics.de Git - linux-beck.git/commitdiff
OMAP: DSS2: Fix error path in omap_dsi_update()
authorArchit Taneja <archit@ti.com>
Wed, 14 Jul 2010 12:11:50 +0000 (14:11 +0200)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Thu, 5 Aug 2010 13:52:18 +0000 (16:52 +0300)
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>
drivers/video/omap2/dss/dsi.c

index a6e0f647554b6e06b11815214193ae991728fad4..b3fa3a7db911f40042dacc86fa025b42f6eabc1c 100644 (file)
@@ -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);
        }