Messages in this thread | | | Subject | Re: [PATCH] power: Destroy IDRs on module exit | From | Oliver Neukum <> | Date | Tue, 14 Jul 2015 11:17:59 +0200 |
| |
On Tue, 2015-07-14 at 11:16 +0200, Johannes Thumshirn wrote: > Destroy IDRs on module exit, freeing the resources for > * bq2415x_charger.c > * ds2782_battery.c > * ltc2941-battery-gauge.c > > The drivers had to be converted to "ordinary" > module_init()/module_exit() > style drivers instead of using module_i2c_driver.
That is a drawback. How about adding a pointer to the idr to "struct i2c_driver" and destroy it in generic code?
Regards Oliver
| |