Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85946abc authored by Eric Anholt's avatar Eric Anholt Committed by Wolfram Sang
Browse files

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: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 1ab0a119
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -253,6 +253,7 @@ static int bcm2835_i2c_probe(struct platform_device *pdev)

	i2c_dev->clk = devm_clk_get(&pdev->dev, NULL);
	if (IS_ERR(i2c_dev->clk)) {
		if (PTR_ERR(i2c_dev->clk) != -EPROBE_DEFER)
			dev_err(&pdev->dev, "Could not get clock\n");
		return PTR_ERR(i2c_dev->clk);
	}