aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-06-04 11:38:38 -0400
committerThierry Reding <treding@nvidia.com>2019-06-05 03:54:13 -0400
commitf0b2835f05c3ff05816b5717b9a920d82954938a (patch)
treed39158d9c99c79caecfb3b786fa2d16c68665d7e
parent34abf69732c7c3a79ae286da0c14a716ec45720d (diff)
soc/tegra: fuse: Do not log error message on deferred probe
Recent changes have made it much more probable that clocks are not available yet when the FUSE driver is first probed. However, that is a situation that the driver can cope with just fine. To avoid confusion, don't output an error when this happens. Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/soc/tegra/fuse/fuse-tegra.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c
index 51625703399e..e075cad57cff 100644
--- a/drivers/soc/tegra/fuse/fuse-tegra.c
+++ b/drivers/soc/tegra/fuse/fuse-tegra.c
@@ -145,8 +145,10 @@ static int tegra_fuse_probe(struct platform_device *pdev)
145 145
146 fuse->clk = devm_clk_get(&pdev->dev, "fuse"); 146 fuse->clk = devm_clk_get(&pdev->dev, "fuse");
147 if (IS_ERR(fuse->clk)) { 147 if (IS_ERR(fuse->clk)) {
148 dev_err(&pdev->dev, "failed to get FUSE clock: %ld", 148 if (PTR_ERR(fuse->clk) != -EPROBE_DEFER)
149 PTR_ERR(fuse->clk)); 149 dev_err(&pdev->dev, "failed to get FUSE clock: %ld",
150 PTR_ERR(fuse->clk));
151
150 fuse->base = base; 152 fuse->base = base;
151 return PTR_ERR(fuse->clk); 153 return PTR_ERR(fuse->clk);
152 } 154 }