mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
media: max2175: Propagate the real error on devm_clk_get() failure
When devm_clk_get() fails we should return the real error code instead of always returning -ENODEV. This allows defer probe to happen in the case the clock provider has not been enabled by the time max2175 driver gets probed. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
82cf5f4f6b
commit
9a45bf28bc
1 changed files with 1 additions and 1 deletions
|
@ -1319,7 +1319,7 @@ static int max2175_probe(struct i2c_client *client,
|
|||
if (IS_ERR(clk)) {
|
||||
ret = PTR_ERR(clk);
|
||||
dev_err(&client->dev, "cannot get clock %d\n", ret);
|
||||
return -ENODEV;
|
||||
return ret;
|
||||
}
|
||||
|
||||
regmap = devm_regmap_init_i2c(client, &max2175_regmap_config);
|
||||
|
|
Loading…
Reference in a new issue