[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201208231035.51627.arnd@arndb.de>
Date: Thu, 23 Aug 2012 10:35:51 +0000
From: Arnd Bergmann <arnd@...db.de>
To: Devendra Naga <develkernel412222@...il.com>
Cc: "Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] misc: use module_spi_driver
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@...il.com>
Acked-by: Arnd Bergmann <arnd@...db.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists