Commit f6cfec89 authored by Peter Rosin's avatar Peter Rosin

[media] cx231xx: stop double error reporting

i2c_mux_add_adapter already logs a message on failure.
Reviewed-by: default avatarWolfram Sang <wsa@the-dreams.de>
Reviewed-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
parent dbed8a80
...@@ -576,17 +576,10 @@ int cx231xx_i2c_mux_create(struct cx231xx *dev) ...@@ -576,17 +576,10 @@ int cx231xx_i2c_mux_create(struct cx231xx *dev)
int cx231xx_i2c_mux_register(struct cx231xx *dev, int mux_no) int cx231xx_i2c_mux_register(struct cx231xx *dev, int mux_no)
{ {
int rc; return i2c_mux_add_adapter(dev->muxc,
rc = i2c_mux_add_adapter(dev->muxc,
0, 0,
mux_no /* chan_id */, mux_no /* chan_id */,
0 /* class */); 0 /* class */);
if (rc)
dev_warn(dev->dev,
"i2c mux %d register FAILED\n", mux_no);
return rc;
} }
void cx231xx_i2c_mux_unregister(struct cx231xx *dev) void cx231xx_i2c_mux_unregister(struct cx231xx *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment