From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j1DUK-0006Eh-Kp for barebox@lists.infradead.org; Mon, 10 Feb 2020 18:08:54 +0000 From: Ahmad Fatoum Date: Mon, 10 Feb 2020 19:08:34 +0100 Message-Id: <20200210180833.22153-5-a.fatoum@pengutronix.de> In-Reply-To: <20200210180833.22153-1-a.fatoum@pengutronix.de> References: <20200210180833.22153-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 5/5] i2c: tegra: correct error message To: barebox@lists.infradead.org Cc: Ahmad Fatoum 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 --- 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@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox