mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
i2c: tegra: Avoid error message on deferred probe
If the driver defers probe because of a missing clock, avoid outputting an error message. The clock will show up eventually. Signed-off-by: Thierry Reding <treding@nvidia.com> Acked-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
aa5ae06515
commit
d680a50cb9
1 changed files with 3 additions and 1 deletions
|
|
@ -1509,7 +1509,9 @@ static int tegra_i2c_probe(struct platform_device *pdev)
|
|||
|
||||
div_clk = devm_clk_get(&pdev->dev, "div-clk");
|
||||
if (IS_ERR(div_clk)) {
|
||||
dev_err(&pdev->dev, "missing controller clock\n");
|
||||
if (PTR_ERR(div_clk) != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "missing controller clock\n");
|
||||
|
||||
return PTR_ERR(div_clk);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue