Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4 -2
+4 -2
drivers/soc/tegra/fuse/fuse-tegra.c
··· 145 145 146 146 fuse->clk = devm_clk_get(&pdev->dev, "fuse"); 147 147 if (IS_ERR(fuse->clk)) { 148 - dev_err(&pdev->dev, "failed to get FUSE clock: %ld", 149 - PTR_ERR(fuse->clk)); 148 + if (PTR_ERR(fuse->clk) != -EPROBE_DEFER) 149 + dev_err(&pdev->dev, "failed to get FUSE clock: %ld", 150 + PTR_ERR(fuse->clk)); 151 + 150 152 fuse->base = base; 151 153 return PTR_ERR(fuse->clk); 152 154 }