summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/mt9m111.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-08-27 13:30:36 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 17:07:18 -0300
commitbddb4b53356d3c97ee387c9ae7f290e4c76e8bc6 (patch)
tree368823de9c71a226e476f3587ab37b99b80fbe1b /drivers/media/i2c/mt9m111.c
parent99cd12425dfe9a400b672f112512a3678dfd1eb6 (diff)
downloadlinux-bddb4b53356d3c97ee387c9ae7f290e4c76e8bc6.tar.bz2
[media] mt9m111: Propagate the real error on v4l2_clk_get() failure
v4l2_clk_get() may return different error codes other than -EPROBE_DEFER, so it is better to return the real error code instead. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c/mt9m111.c')
-rw-r--r--drivers/media/i2c/mt9m111.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/mt9m111.c b/drivers/media/i2c/mt9m111.c
index 99b992e46702..b1665d97e0fd 100644
--- a/drivers/media/i2c/mt9m111.c
+++ b/drivers/media/i2c/mt9m111.c
@@ -945,7 +945,7 @@ static int mt9m111_probe(struct i2c_client *client,
mt9m111->clk = v4l2_clk_get(&client->dev, "mclk");
if (IS_ERR(mt9m111->clk))
- return -EPROBE_DEFER;
+ return PTR_ERR(mt9m111->clk);
/* Default HIGHPOWER context */
mt9m111->ctx = &context_b;