diff options
author | Peter Rosin <peda@axentia.se> | 2017-04-03 10:14:11 +0200 |
---|---|---|
committer | Peter Rosin <peda@axentia.se> | 2017-04-03 14:07:32 +0200 |
commit | 1b00900fa0bdd4a634f6864efe3d07c216523688 (patch) | |
tree | cf28244448314081002e0ad1866259fc5f9794e9 /drivers/i2c | |
parent | 1144d13eaaaec21a55614ca7ade2c8fc1d9f1685 (diff) |
i2c: mux: gpio: stop double error reporting
i2c_mux_add_adapter already logs a message on failure.
Reviewed-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Peter Rosin <peda@axentia.se>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/muxes/i2c-mux-gpio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index 655684d621a4..1a9973ede443 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c @@ -245,10 +245,8 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev) unsigned int class = mux->data.classes ? mux->data.classes[i] : 0; ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); - if (ret) { - dev_err(&pdev->dev, "Failed to add adapter %d\n", i); + if (ret) goto add_adapter_failed; - } } dev_info(&pdev->dev, "%d port mux on %s adapter\n", |