]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
soc/tegra: fuse: Do not log error message on deferred probe
authorThierry Reding <treding@nvidia.com>
Tue, 4 Jun 2019 15:38:38 +0000 (17:38 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 5 Jun 2019 07:54:13 +0000 (09:54 +0200)
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>
drivers/soc/tegra/fuse/fuse-tegra.c

index 51625703399e4426e16a506d7968ad264dcb36e1..e075cad57cffb6031f82e16b7e215c9868dfe759 100644 (file)
@@ -145,8 +145,10 @@ static int tegra_fuse_probe(struct platform_device *pdev)
 
        fuse->clk = devm_clk_get(&pdev->dev, "fuse");
        if (IS_ERR(fuse->clk)) {
-               dev_err(&pdev->dev, "failed to get FUSE clock: %ld",
-                       PTR_ERR(fuse->clk));
+               if (PTR_ERR(fuse->clk) != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "failed to get FUSE clock: %ld",
+                               PTR_ERR(fuse->clk));
+
                fuse->base = base;
                return PTR_ERR(fuse->clk);
        }