mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
i2c: bcm2835: Don't complain on -EPROBE_DEFER from getting our clock
Fixes dmesg spam when we just need to wait a moment for the clock driver to probe. Signed-off-by: Eric Anholt <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
1ab0a1192d
commit
85946abc96
1 changed files with 2 additions and 1 deletions
|
|
@ -253,7 +253,8 @@ static int bcm2835_i2c_probe(struct platform_device *pdev)
|
|||
|
||||
i2c_dev->clk = devm_clk_get(&pdev->dev, NULL);
|
||||
if (IS_ERR(i2c_dev->clk)) {
|
||||
dev_err(&pdev->dev, "Could not get clock\n");
|
||||
if (PTR_ERR(i2c_dev->clk) != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "Could not get clock\n");
|
||||
return PTR_ERR(i2c_dev->clk);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue