Re: [PATCH] misc: use module_spi_driver

2012-08-23 Thread Arnd Bergmann
On Thursday 23 August 2012, Devendra Naga wrote: > The _init and _exit functions can be replaced with the module_spi_driver > macro, which actually implements > > static int __init drv_init(void) > { > spi_register_driver(&driv_op); > return 0; > } > > module_init(drv_init); > >

[PATCH] misc: use module_spi_driver

2012-08-23 Thread Devendra Naga
The _init and _exit functions can be replaced with the module_spi_driver macro, which actually implements static int __init drv_init(void) { spi_register_driver(&driv_op); return 0; } module_init(drv_init); static void __exit drv_exit(void) { spi_unregister_driver(&driv_o