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

Commit fece4978 authored by Lucas Stach's avatar Lucas Stach Committed by Wolfram Sang
Browse files

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: default avatarLucas Stach <l.stach@pengutronix.de>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 346f7e6b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1090,6 +1090,7 @@ 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)) {
		if (PTR_ERR(i2c_imx->clk) != -EPROBE_DEFER)
			dev_err(&pdev->dev, "can't get I2C clock\n");
		return PTR_ERR(i2c_imx->clk);
	}