Re: [PATCH] misc: use module_spi_driver

From: Arnd Bergmann
Date: Thu Aug 23 2012 - 06:35:50 EST


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);
>
> static void __exit drv_exit(void)
> {
> spi_unregister_driver(&driv_op);
> }
>
> module_exit(drv_exit);
>
> Signed-off-by: Devendra Naga <develkernel412222@xxxxxxxxx>

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/