[media] omap3isp: Handle omap3isp_csi2_reset() errors
authorSakari Ailus <sakari.ailus@iki.fi>
Fri, 2 Mar 2012 16:03:01 +0000 (13:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 May 2012 16:51:46 +0000 (13:51 -0300)
Handle errors from omap3isp_csi2_reset() in omap3isp_csiphy_acquire().

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/ispcsiphy.c

index 5be37ce..348f67e 100644 (file)
@@ -186,7 +186,9 @@ int omap3isp_csiphy_acquire(struct isp_csiphy *phy)
        if (rval < 0)
                goto done;
 
-       omap3isp_csi2_reset(phy->csi2);
+       rval = omap3isp_csi2_reset(phy->csi2);
+       if (rval < 0)
+               goto done;
 
        csiphy_dphy_config(phy);
        csiphy_lanes_config(phy);