Re: [PATCH 1/2] ds2781_battery: convert to module_platform_driver

2012-08-22 Thread Anton Vorontsov
On Mon, Jul 30, 2012 at 04:29:10PM +0545, Devendra Naga wrote: > module_platform_driver can be used to replace the > platform_driver register and unregister functions, > with the calls to module_init and module_exit, > > i.e. all the code that is doing like the below > > static int __init

Re: [PATCH 1/2] ds2781_battery: convert to module_platform_driver

2012-08-22 Thread Anton Vorontsov
On Mon, Jul 30, 2012 at 04:29:10PM +0545, Devendra Naga wrote: module_platform_driver can be used to replace the platform_driver register and unregister functions, with the calls to module_init and module_exit, i.e. all the code that is doing like the below static int __init

[PATCH 1/2] ds2781_battery: convert to module_platform_driver

2012-07-30 Thread Devendra Naga
module_platform_driver can be used to replace the platform_driver register and unregister functions, with the calls to module_init and module_exit, i.e. all the code that is doing like the below static int __init mymod_init(void) { return platform_driver_register(_operations); } static

[PATCH 1/2] ds2781_battery: convert to module_platform_driver

2012-07-30 Thread Devendra Naga
module_platform_driver can be used to replace the platform_driver register and unregister functions, with the calls to module_init and module_exit, i.e. all the code that is doing like the below static int __init mymod_init(void) { return platform_driver_register(drv_operations); }