From: Sakari Ailus Date: Fri, 2 Mar 2012 16:03:01 +0000 (-0300) Subject: [media] omap3isp: Handle omap3isp_csi2_reset() errors X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ca7f4a3821aae53ab4ba5f7b14db9755b856d615;p=openwrt%2Fstaging%2Fblogic.git [media] omap3isp: Handle omap3isp_csi2_reset() errors Handle errors from omap3isp_csi2_reset() in omap3isp_csiphy_acquire(). Signed-off-by: Sakari Ailus Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/omap3isp/ispcsiphy.c b/drivers/media/video/omap3isp/ispcsiphy.c index 5be37ce7d0c2..348f67ebbbc9 100644 --- a/drivers/media/video/omap3isp/ispcsiphy.c +++ b/drivers/media/video/omap3isp/ispcsiphy.c @@ -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);