* Felipe Balbi <felipe.balbi@xxxxxxxxx> [080417 05:31]: > We don't have to print any error message if i2c_add_driver > fails since i2c subsystem already does it. Pushing. Tony > Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx> > --- > drivers/i2c/chips/isp1301_omap.c | 10 +--------- > drivers/i2c/chips/menelaus.c | 10 +--------- > 2 files changed, 2 insertions(+), 18 deletions(-) > > diff --git a/drivers/i2c/chips/isp1301_omap.c b/drivers/i2c/chips/isp1301_omap.c > index 6ebff9c..09f9662 100644 > --- a/drivers/i2c/chips/isp1301_omap.c > +++ b/drivers/i2c/chips/isp1301_omap.c > @@ -1606,15 +1606,7 @@ static struct i2c_driver isp1301_driver = { > > static int __init isp_init(void) > { > - int status = -ENODEV; > - > - printk(KERN_INFO "%s: version %s\n", DRIVER_NAME, DRIVER_VERSION); > - > - status = i2c_add_driver(&isp1301_driver); > - if (status) > - printk(KERN_ERR "%s failed to probe\n", DRIVER_NAME); > - > - return status; > + return i2c_add_driver(&isp1301_driver); > } > module_init(isp_init); > > diff --git a/drivers/i2c/chips/menelaus.c b/drivers/i2c/chips/menelaus.c > index 1d7482a..d4d1ccc 100644 > --- a/drivers/i2c/chips/menelaus.c > +++ b/drivers/i2c/chips/menelaus.c > @@ -1281,15 +1281,7 @@ static struct i2c_driver menelaus_i2c_driver = { > > static int __init menelaus_init(void) > { > - int res; > - > - res = i2c_add_driver(&menelaus_i2c_driver); > - if (res < 0) { > - dev_err(&the_menelaus->client->dev, "driver registration failed\n"); > - return res; > - } > - > - return 0; > + return i2c_add_driver(&menelaus_i2c_driver); > } > > static void __exit menelaus_exit(void) > -- > 1.5.5.49.gf43e2 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html