diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-08-27 18:30:36 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2017-10-04 22:07:18 +0200 |
commit | bddb4b53356d3c97ee387c9ae7f290e4c76e8bc6 (patch) | |
tree | 368823de9c71a226e476f3587ab37b99b80fbe1b /drivers/media/i2c | |
parent | [media] media: ov5670: Use recommended black level and output bias (diff) | |
download | linux-bddb4b53356d3c97ee387c9ae7f290e4c76e8bc6.tar.xz linux-bddb4b53356d3c97ee387c9ae7f290e4c76e8bc6.zip |
[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')
-rw-r--r-- | drivers/media/i2c/mt9m111.c | 2 |
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; |