Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -70,9 +70,8 @@ static int mpu3050_i2c_probe(struct i2c_client *client,
		dev_err(&client->dev, "failed to allocate I2C mux\n");
	else {
		mpu3050->i2cmux->priv = mpu3050;
		ret = i2c_mux_add_adapter(mpu3050->i2cmux, 0, 0, 0);
		if (ret)
			dev_err(&client->dev, "failed to add I2C mux\n");
		/* Ignore failure, not critical */
		i2c_mux_add_adapter(mpu3050->i2cmux, 0, 0, 0);
	}

	return 0;