mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
clk: tegra: probe deferral error reporting
Actually report the error code from devm_regulator_get() which may as well just be a probe deferral. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
5b394b2ddf
commit
923ca13231
@ -1609,8 +1609,12 @@ int tegra_dfll_register(struct platform_device *pdev,
|
||||
|
||||
td->vdd_reg = devm_regulator_get(td->dev, "vdd-cpu");
|
||||
if (IS_ERR(td->vdd_reg)) {
|
||||
dev_err(td->dev, "couldn't get vdd_cpu regulator\n");
|
||||
return PTR_ERR(td->vdd_reg);
|
||||
ret = PTR_ERR(td->vdd_reg);
|
||||
if (ret != -EPROBE_DEFER)
|
||||
dev_err(td->dev, "couldn't get vdd_cpu regulator: %d\n",
|
||||
ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
td->dvco_rst = devm_reset_control_get(td->dev, "dvco");
|
||||
|
Loading…
Reference in New Issue
Block a user