From: Jean Delvare <jdelvare@suse.de>
To: Christoph Jaeger <christophjaeger@linux.com>
Cc: wsa@the-dreams.de, linux-i2c@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i2c-taos-evm: Use module_serio_driver()
Date: Fri, 13 Jun 2014 23:23:00 +0200 [thread overview]
Message-ID: <20140613232300.45ebf96f@endymion.delvare> (raw)
In-Reply-To: <1402689144-20259-1-git-send-email-christophjaeger@linux.com>
On Fri, 13 Jun 2014 21:52:24 +0200, Christoph Jaeger wrote:
> Get rid of some boilerplate code by using module_serio_driver().
>
> Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
> ---
> drivers/i2c/busses/i2c-taos-evm.c | 13 +------------
> 1 file changed, 1 insertion(+), 12 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-taos-evm.c b/drivers/i2c/busses/i2c-taos-evm.c
> index 0576026..10855a0 100644
> --- a/drivers/i2c/busses/i2c-taos-evm.c
> +++ b/drivers/i2c/busses/i2c-taos-evm.c
> @@ -311,19 +311,8 @@ static struct serio_driver taos_drv = {
> .interrupt = taos_interrupt,
> };
>
> -static int __init taos_init(void)
> -{
> - return serio_register_driver(&taos_drv);
> -}
> -
> -static void __exit taos_exit(void)
> -{
> - serio_unregister_driver(&taos_drv);
> -}
> +module_serio_driver(taos_drv);
>
> MODULE_AUTHOR("Jean Delvare <jdelvare@suse.de>");
> MODULE_DESCRIPTION("TAOS evaluation module driver");
> MODULE_LICENSE("GPL");
> -
> -module_init(taos_init);
> -module_exit(taos_exit);
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Thanks,
--
Jean Delvare
SUSE L3 Support
next prev parent reply other threads:[~2014-06-13 21:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-13 19:52 [PATCH] i2c-taos-evm: Use module_serio_driver() Christoph Jaeger
2014-06-13 21:23 ` Jean Delvare [this message]
[not found] ` <1402689144-20259-1-git-send-email-christophjaeger-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org>
2014-06-27 11:25 ` Wolfram Sang
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=20140613232300.45ebf96f@endymion.delvare \
--to=jdelvare@suse.de \
--cc=christophjaeger@linux.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wsa@the-dreams.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).