summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2012-03-02 17:03:01 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-08 18:51:46 +0200
commitca7f4a3821aae53ab4ba5f7b14db9755b856d615 (patch)
tree1098784b4611112f871b1830f4a5152d18bf7968
parent[media] omap3isp: Fix frame number propagation (diff)
downloadlinux-ca7f4a3821aae53ab4ba5f7b14db9755b856d615.tar.xz
linux-ca7f4a3821aae53ab4ba5f7b14db9755b856d615.zip
[media] omap3isp: Handle omap3isp_csi2_reset() errors
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>
-rw-r--r--drivers/media/video/omap3isp/ispcsiphy.c4
1 files changed, 3 insertions, 1 deletions
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);