diff options
-rw-r--r-- | drivers/i2c/muxes/i2c-mux-reg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-reg.c b/drivers/i2c/muxes/i2c-mux-reg.c index c6a90b4a9c62..406d5059072c 100644 --- a/drivers/i2c/muxes/i2c-mux-reg.c +++ b/drivers/i2c/muxes/i2c-mux-reg.c | |||
@@ -222,10 +222,8 @@ static int i2c_mux_reg_probe(struct platform_device *pdev) | |||
222 | class = mux->data.classes ? mux->data.classes[i] : 0; | 222 | class = mux->data.classes ? mux->data.classes[i] : 0; |
223 | 223 | ||
224 | ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); | 224 | ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); |
225 | if (ret) { | 225 | if (ret) |
226 | dev_err(&pdev->dev, "Failed to add adapter %d\n", i); | ||
227 | goto add_adapter_failed; | 226 | goto add_adapter_failed; |
228 | } | ||
229 | } | 227 | } |
230 | 228 | ||
231 | dev_dbg(&pdev->dev, "%d port mux on %s adapter\n", | 229 | dev_dbg(&pdev->dev, "%d port mux on %s adapter\n", |