Skip to content

Commit

Permalink
i2c: bcm2835: Don't complain on -EPROBE_DEFER from getting our clock
Browse files Browse the repository at this point in the history
Fixes dmesg spam when we just need to wait a moment for the clock
driver to probe.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Eric Anholt authored and Wolfram Sang committed Jul 22, 2016
1 parent 1ab0a11 commit 85946ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/i2c/busses/i2c-bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 85946ab

Please sign in to comment.