On 01/06/2012 10:35 AM, Pirmin Duss wrote: > From: Pirmin Duss (Flytec) <pirmin.duss@xxxxxxxxx> > [...] > + > +static struct i2c_driver ads1110_driver = { > + .driver = { > + .name = "ads1110", > + }, > + .probe = ads1110_probe, > + .remove = __devexit_p(ads1110_remove), > + .id_table = ads1110_id, > +}; > + > +static int __init ads1110_init(void) > +{ > + return i2c_add_driver(&ads1110_driver); > +} > +module_init(ads1110_init); > + > +static void __exit ads1110_exit(void) > +{ > + i2c_del_driver(&ads1110_driver); > +} > +module_exit(ads1110_exit); Now that staging-next contains this macro please use module_i2c_driver(ads1110_driver) here. -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html