提交 011dfab8 编写于 作者: F Fabio Estevam 提交者: Mauro Carvalho Chehab

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: NFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 eada4759
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册