Browse Source

i2c: mux: pinctrl: 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>
Peter Rosin 8 years ago
parent
commit
c99a23e55f
1 changed files with 1 additions and 3 deletions
  1. 1 3
      drivers/i2c/muxes/i2c-mux-pinctrl.c

+ 1 - 3
drivers/i2c/muxes/i2c-mux-pinctrl.c

@@ -245,10 +245,8 @@ static int i2c_mux_pinctrl_probe(struct platform_device *pdev)
 				(mux->pdata->base_bus_num + i) : 0;
 
 		ret = i2c_mux_add_adapter(muxc, bus, i, 0);
-		if (ret) {
-			dev_err(&pdev->dev, "Failed to add adapter %d\n", i);
+		if (ret)
 			goto err_del_adapter;
-		}
 	}
 
 	return 0;