提交 877f1af1 编写于 作者: F Fabio Estevam 提交者: Mauro Carvalho Chehab

[media] ov2640: Propagate the real error on devm_clk_get() failure

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: NFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 bddb4b53
...@@ -1107,7 +1107,7 @@ static int ov2640_probe(struct i2c_client *client, ...@@ -1107,7 +1107,7 @@ static int ov2640_probe(struct i2c_client *client,
if (client->dev.of_node) { if (client->dev.of_node) {
priv->clk = devm_clk_get(&client->dev, "xvclk"); priv->clk = devm_clk_get(&client->dev, "xvclk");
if (IS_ERR(priv->clk)) if (IS_ERR(priv->clk))
return -EPROBE_DEFER; return PTR_ERR(priv->clk);
clk_prepare_enable(priv->clk); clk_prepare_enable(priv->clk);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册