diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-10-30 19:58:12 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-01 11:33:07 +0100 |
commit | 1d6f38f32342345c7930f9ca1983b908f1d5a2d3 (patch) | |
tree | babe6a2619f5695239689810197439d5b6c56408 /drivers/i2c | |
parent | 7118e4117c3f0ac62e16ce361422a7efa1704b7b (diff) | |
download | barebox-1d6f38f32342345c7930f9ca1983b908f1d5a2d3.tar.gz barebox-1d6f38f32342345c7930f9ca1983b908f1d5a2d3.tar.xz |
i2c-mux-pca954x: drop duplicate warning message on probe
Driver core will already print an error with the probe's return code,
so no need to print a less useful message before that.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20211030175812.2276705-10-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/muxes/i2c-mux-pca954x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c index aa7dcb8c31..0b397185c9 100644 --- a/drivers/i2c/muxes/i2c-mux-pca954x.c +++ b/drivers/i2c/muxes/i2c-mux-pca954x.c @@ -210,10 +210,8 @@ static int pca954x_probe(struct device_d *dev) * that the mux is in fact present. This also * initializes the mux to disconnected state. */ - if (i2c_smbus_write_byte(client, 0) < 0) { - dev_warn(&client->dev, "probe failed\n"); + if (i2c_smbus_write_byte(client, 0) < 0) goto exit_free; - } ret = dev_get_drvdata(dev, (const void **)&tmp); data->type = tmp; |