aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-06-01 17:43:33 -0400
committerWolfram Sang <wsa@the-dreams.de>2016-07-22 03:23:53 -0400
commit85946abc961957df08c58acf838810f08c2a4594 (patch)
treeb9348183283b2c048df206bbd26181867ba58801
parent1ab0a1192dc8b02162c7ce03d332ef8e599e5f4e (diff)
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 <eric@anholt.net> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r--drivers/i2c/busses/i2c-bcm2835.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c
index 818b051d25e6..d4f3239b5686 100644
--- a/drivers/i2c/busses/i2c-bcm2835.c
+++ b/drivers/i2c/busses/i2c-bcm2835.c
@@ -253,7 +253,8 @@ static int bcm2835_i2c_probe(struct platform_device *pdev)
253 253
254 i2c_dev->clk = devm_clk_get(&pdev->dev, NULL); 254 i2c_dev->clk = devm_clk_get(&pdev->dev, NULL);
255 if (IS_ERR(i2c_dev->clk)) { 255 if (IS_ERR(i2c_dev->clk)) {
256 dev_err(&pdev->dev, "Could not get clock\n"); 256 if (PTR_ERR(i2c_dev->clk) != -EPROBE_DEFER)
257 dev_err(&pdev->dev, "Could not get clock\n");
257 return PTR_ERR(i2c_dev->clk); 258 return PTR_ERR(i2c_dev->clk);
258 } 259 }
259 260