Commit 6a95d825 authored by Peter Rosin's avatar Peter Rosin Committed by Jonathan Cameron

iio: gyro: mpu3050: stop double error reporting

i2c_mux_add_adapter already logs a message on failure.
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent edf5e794
...@@ -70,9 +70,8 @@ static int mpu3050_i2c_probe(struct i2c_client *client, ...@@ -70,9 +70,8 @@ static int mpu3050_i2c_probe(struct i2c_client *client,
dev_err(&client->dev, "failed to allocate I2C mux\n"); dev_err(&client->dev, "failed to allocate I2C mux\n");
else { else {
mpu3050->i2cmux->priv = mpu3050; mpu3050->i2cmux->priv = mpu3050;
ret = i2c_mux_add_adapter(mpu3050->i2cmux, 0, 0, 0); /* Ignore failure, not critical */
if (ret) i2c_mux_add_adapter(mpu3050->i2cmux, 0, 0, 0);
dev_err(&client->dev, "failed to add I2C mux\n");
} }
return 0; return 0;
......
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