summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2018-11-14 18:29:13 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-21 10:34:38 +0100
commit0d968bdb165689a9f22bd0d23cbfbfef6823b712 (patch)
treed16988b7c358bffd07cae49932e7f7cd3d463983 /drivers/i2c
parentb64f139295e79ce6a827d5b65d59ad3f40074fa1 (diff)
downloadlinux-stable-0d968bdb165689a9f22bd0d23cbfbfef6823b712.tar.gz
linux-stable-0d968bdb165689a9f22bd0d23cbfbfef6823b712.tar.bz2
linux-stable-0d968bdb165689a9f22bd0d23cbfbfef6823b712.zip
i2c: imx: don't print error message on probe defer
[ Upstream commit fece4978510e43f09c8cd386fee15210e8c68493 ] 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> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/i2c')
-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 cf1b57a054d0..d121c5732d7d 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -1076,7 +1076,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);
}