Commit 1144d13e authored by Peter Rosin's avatar Peter Rosin

i2c: arb: gpio-challenge: stop double error reporting

i2c_mux_add_adapter already logs a message on failure.
Reviewed-by: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
parent 8d4d159f
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment