diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-08-14 11:18:05 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-10-17 00:29:49 +0200 |
commit | 923ca1323196fe727907d4d9e704d7d32a1adbd3 (patch) | |
tree | be9eb907f75e8b438d275e7ec69f4ed9c9141234 /drivers/clk/tegra | |
parent | Linux 4.19-rc1 (diff) | |
download | linux-923ca1323196fe727907d4d9e704d7d32a1adbd3.tar.xz linux-923ca1323196fe727907d4d9e704d7d32a1adbd3.zip |
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>
Diffstat (limited to 'drivers/clk/tegra')
-rw-r--r-- | drivers/clk/tegra/clk-dfll.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/clk/tegra/clk-dfll.c b/drivers/clk/tegra/clk-dfll.c index 48ee43734e05..ebb0e1b6bf01 100644 --- a/drivers/clk/tegra/clk-dfll.c +++ b/drivers/clk/tegra/clk-dfll.c @@ -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"); |