Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 011dfab8 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mauro Carvalho Chehab
Browse files

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: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent eada4759
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);