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

Commit 877f1af1 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent bddb4b53
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}