summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2018-11-14 18:04:25 +0100
committerLucas Stach <l.stach@pengutronix.de>2018-11-14 18:54:40 +0100
commit57f3678e9984d671c3037df8e0efd44226025ddf (patch)
tree5f53aed023688524d64ddde86b619b2f4997501e
parent651022382c7f8da46cb4872a545ee1da6d097d2a (diff)
downloadlinux-57f3678e9984d671c3037df8e0efd44226025ddf.tar.gz
linux-57f3678e9984d671c3037df8e0efd44226025ddf.tar.xz
i2c: imx: don't print error message on probe defer
Probe deferral is a normal operating condition in the probe function, so don't spam the log with an error in this case. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
-rw-r--r--drivers/i2c/busses/i2c-imx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index c406700789e1..fa9ad53845d9 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -1090,7 +1090,8 @@ static int i2c_imx_probe(struct platform_device *pdev)
/* Get I2C clock */
i2c_imx->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(i2c_imx->clk)) {
- dev_err(&pdev->dev, "can't get I2C clock\n");
+ if (PTR_ERR(i2c_imx->clk) != -EPROBE_DEFER)
+ dev_err(&pdev->dev, "can't get I2C clock\n");
return PTR_ERR(i2c_imx->clk);
}