mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
i2c: mux: pca9541: stop double error reporting
i2c_mux_add_adapter already logs a message on failure. Reviewed-by: Wolfram Sang <[email protected]> Signed-off-by: Peter Rosin <[email protected]>
This commit is contained in:
parent
1b00900fa0
commit
664d9bbada
1 changed files with 1 additions and 3 deletions
|
|
@ -369,10 +369,8 @@ static int pca9541_probe(struct i2c_client *client,
|
|||
i2c_set_clientdata(client, muxc);
|
||||
|
||||
ret = i2c_mux_add_adapter(muxc, force, 0, 0);
|
||||
if (ret) {
|
||||
dev_err(&client->dev, "failed to register master selector\n");
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
dev_info(&client->dev, "registered master selector for I2C %s\n",
|
||||
client->name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue