mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
i2c: mux: pca954x: 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>
This commit is contained in:
parent
664d9bbada
commit
0756ac3235
1 changed files with 1 additions and 6 deletions
|
@ -434,13 +434,8 @@ static int pca954x_probe(struct i2c_client *client,
|
|||
idle_disconnect_dt) << num;
|
||||
|
||||
ret = i2c_mux_add_adapter(muxc, force, num, class);
|
||||
|
||||
if (ret) {
|
||||
dev_err(&client->dev,
|
||||
"failed to register multiplexed adapter"
|
||||
" %d as bus %d\n", num, force);
|
||||
if (ret)
|
||||
goto fail_del_adapters;
|
||||
}
|
||||
}
|
||||
|
||||
dev_info(&client->dev,
|
||||
|
|
Loading…
Reference in a new issue