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

[media] mt9m111: Propagate the real error on v4l2_clk_get() failure

v4l2_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>
上级 99cd1242
...@@ -945,7 +945,7 @@ static int mt9m111_probe(struct i2c_client *client, ...@@ -945,7 +945,7 @@ static int mt9m111_probe(struct i2c_client *client,
mt9m111->clk = v4l2_clk_get(&client->dev, "mclk"); mt9m111->clk = v4l2_clk_get(&client->dev, "mclk");
if (IS_ERR(mt9m111->clk)) if (IS_ERR(mt9m111->clk))
return -EPROBE_DEFER; return PTR_ERR(mt9m111->clk);
/* Default HIGHPOWER context */ /* Default HIGHPOWER context */
mt9m111->ctx = &context_b; mt9m111->ctx = &context_b;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册