From: Arnd Bergmann <arnd@arndb.de>
To: Devendra Naga <develkernel412222@gmail.com>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] misc: use module_spi_driver
Date: Thu, 23 Aug 2012 10:35:51 +0000 [thread overview]
Message-ID: <201208231035.51627.arnd@arndb.de> (raw)
In-Reply-To: <1345711989-23276-1-git-send-email-develkernel412222@gmail.com>
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@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
prev parent reply other threads:[~2012-08-23 10:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-23 8:53 [PATCH] misc: use module_spi_driver Devendra Naga
2012-08-23 10:35 ` Arnd Bergmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201208231035.51627.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=develkernel412222@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.