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>
This commit is contained in:
@ -202,10 +202,8 @@ static int i2c_arbitrator_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
/* Actually add the mux adapter */
|
/* Actually add the mux adapter */
|
||||||
ret = i2c_mux_add_adapter(muxc, 0, 0, 0);
|
ret = i2c_mux_add_adapter(muxc, 0, 0, 0);
|
||||||
if (ret) {
|
if (ret)
|
||||||
dev_err(dev, "Failed to add adapter\n");
|
|
||||||
i2c_put_adapter(muxc->parent);
|
i2c_put_adapter(muxc->parent);
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user