diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-07-19 05:34:18 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-08 12:24:33 +0200 |
commit | 011dfab80543019d01f66665734f50f5a4b26e6d (patch) | |
tree | dc3ddcf41c13fd44649a41a198f3ee7a87bc43b8 /drivers/media/i2c/ov7670.c | |
parent | media: v4l2-tpg-core.c: fix typo in bt2020_full matrix (diff) | |
download | linux-011dfab80543019d01f66665734f50f5a4b26e6d.tar.xz linux-011dfab80543019d01f66665734f50f5a4b26e6d.zip |
media: ov7670: Return the real error code
When devm_clk_get() fails the real error code should be propagated,
instead of always returning -EPROBE_DEFER.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/ov7670.c')
-rw-r--r-- | drivers/media/i2c/ov7670.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index 7270c68ed18a..552a881e24da 100644 --- a/drivers/media/i2c/ov7670.c +++ b/drivers/media/i2c/ov7670.c @@ -1614,7 +1614,7 @@ static int ov7670_probe(struct i2c_client *client, info->clk = devm_clk_get(&client->dev, "xclk"); if (IS_ERR(info->clk)) - return -EPROBE_DEFER; + return PTR_ERR(info->clk); clk_prepare_enable(info->clk); ret = ov7670_init_gpio(client, info); |