Commit f0892361 authored by Peter Rosin's avatar Peter Rosin

i2c: mux: reg: 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 c99a23e5
...@@ -222,10 +222,8 @@ static int i2c_mux_reg_probe(struct platform_device *pdev) ...@@ -222,10 +222,8 @@ static int i2c_mux_reg_probe(struct platform_device *pdev)
class = mux->data.classes ? mux->data.classes[i] : 0; class = mux->data.classes ? mux->data.classes[i] : 0;
ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class);
if (ret) { if (ret)
dev_err(&pdev->dev, "Failed to add adapter %d\n", i);
goto add_adapter_failed; goto add_adapter_failed;
}
} }
dev_dbg(&pdev->dev, "%d port mux on %s adapter\n", dev_dbg(&pdev->dev, "%d port mux on %s adapter\n",
......
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