reset_control_get returns NULL when the controller reset is missing. The error pointer is used for malformed reset controller specification. Correct the message accordingly. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- drivers/i2c/busses/i2c-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index d56c0def6528..94c982d5c2b7 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -632,7 +632,7 @@ static int tegra_i2c_probe(struct device_d *dev) i2c_dev->rst = reset_control_get(dev, "i2c"); if (IS_ERR(i2c_dev->rst)) { - dev_err(dev, "missing controller reset"); + dev_err(dev, "invalid controller reset"); return PTR_ERR(i2c_dev->rst); } -- 2.25.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox