summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2017-04-03 10:14:06 +0200
committerPeter Rosin <peda@axentia.se>2017-04-03 14:07:32 +0200
commit1144d13eaaaec21a55614ca7ade2c8fc1d9f1685 (patch)
tree4d2d7196e6c895c1c9bbedfc85062775ddc81614 /drivers/i2c/muxes/i2c-arb-gpio-challenge.c
parent8d4d159f25a79bdaf1f8ae5536471ba9b26b26c2 (diff)
downloadlinux-stable-1144d13eaaaec21a55614ca7ade2c8fc1d9f1685.tar.gz
linux-stable-1144d13eaaaec21a55614ca7ade2c8fc1d9f1685.tar.bz2
linux-stable-1144d13eaaaec21a55614ca7ade2c8fc1d9f1685.zip
i2c: arb: gpio-challenge: 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/muxes/i2c-arb-gpio-challenge.c')
-rw-r--r--drivers/i2c/muxes/i2c-arb-gpio-challenge.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
index 86fc2d4c081b..812b8cff265f 100644
--- a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
+++ b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
@@ -202,10 +202,8 @@ static int i2c_arbitrator_probe(struct platform_device *pdev)
/* Actually add the mux adapter */
ret = i2c_mux_add_adapter(muxc, 0, 0, 0);
- if (ret) {
- dev_err(dev, "Failed to add adapter\n");
+ if (ret)
i2c_put_adapter(muxc->parent);
- }
return ret;
}