video: don't print error when adding adapter fails
Subsystems (2)
PATCH 1/1 video: don't print error when adding adapter fails
Since v4.8-rc1, the I2C core will print detailed information when adding an I2C adapter fails. So, drivers can skip this now.
Should go via subsystem tree, I'd think.
Wolfram Sang (1):
video: fbdev: mb862xx: mb862xx-i2c: don't print error when adding
adapter fails
drivers/video/fbdev/mb862xx/mb862xx-i2c.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
Signature · 1 line
2.8.1
PATCH 1/1 video: fbdev: mb862xx: mb862xx-i2c: don't print error when adding adapter fails
The core will do this for us now.
--- drivers/video/fbdev/mb862xx/mb862xx-i2c.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/video/fbdev/mb862xx/mb862xx-i2c.c +1 -6
@@ -162,12 +162,7 @@ int mb862xx_i2c_init(struct mb862xxfb_par *par) mb862xx_i2c_adapter.algo_data = par; par->adap = &mb862xx_i2c_adapter; - ret =i2c_add_adapter (par->adap); -if (ret <0 ) { -dev_err (par->dev,"failed to add %s\n" , - mb862xx_i2c_adapter.name); - } -return ret; +return i2c_add_adapter (par->adap); }void mb862xx_i2c_exit (struct mb862xxfb_par *par)
Signature · 1 line
2.8.1
Re: [PATCH] video: fbdev: mb862xx: mb862xx-i2c: don't print error when adding adapter fails
Quoted 6 lines · Wolfram Sang
The core will do this for us now.
Signed-off-by Wolfram Sang <[email protected]>--- drivers/video/fbdev/mb862xx/mb862xx-i2c.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
Thanks, queued for v4.9.
One comment: the patch description should be "stand-alone" text, not a continuation of the subject. I fixed this.
Tomi
Re: [PATCH] video: fbdev: mb862xx: mb862xx-i2c: don't print error when adding adapter fails
Quoted 3 lines
One comment: the patch description should be "stand-alone" text, not a continuation of the subject. I fixed this.
I see. Will keep that in mind for the future. Thanks!