mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
iio: gyro: mpu3050: stop double error reporting
i2c_mux_add_adapter already logs a message on failure. Signed-off-by: Peter Rosin <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
parent
edf5e79422
commit
6a95d825f6
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue