projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bddb4b5
)
[media] ov2640: Propagate the real error on devm_clk_get() failure
author
Fabio Estevam
<fabio.estevam@nxp.com>
Sun, 27 Aug 2017 16:30:37 +0000
(13:30 -0300)
committer
Mauro Carvalho Chehab
<mchehab@osg.samsung.com>
Wed, 4 Oct 2017 20:07:42 +0000
(17:07 -0300)
devm_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>
drivers/media/i2c/ov2640.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/ov2640.c
b/drivers/media/i2c/ov2640.c
index e6d0c1f64f0b1083c99d6dc4a3a5d3430f8b1265..e6cbe01bc4cf9a659d002465fb841d07e82cd50f 100644
(file)
--- a/
drivers/media/i2c/ov2640.c
+++ b/
drivers/media/i2c/ov2640.c
@@
-1107,7
+1107,7
@@
static int ov2640_probe(struct i2c_client *client,
if (client->dev.of_node) {
priv->clk = devm_clk_get(&client->dev, "xvclk");
if (IS_ERR(priv->clk))
- return
-EPROBE_DEFER
;
+ return
PTR_ERR(priv->clk)
;
clk_prepare_enable(priv->clk);
}