提交 664d9bba 编写于 作者: P Peter Rosin

i2c: mux: pca9541: stop double error reporting

i2c_mux_add_adapter already logs a message on failure.
Reviewed-by: NWolfram Sang <wsa@the-dreams.de>
Signed-off-by: NPeter Rosin <peda@axentia.se>
上级 1b00900f
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册