public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Libo Chen <chenlibo.3@gmail.com>
To: wsa@the-dreams.de
Cc: Libo Chen <libo.chen@huawei.com>,
	guz.fnst@cn.fujitsu.com, sonic.zhang@analog.com,
	linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC v3 3/3] i2c: pxa: use module_platform_driver() replace init/exit
Date: Thu, 23 May 2013 21:48:22 +0800	[thread overview]
Message-ID: <519E1E26.3060106@gmail.com> (raw)
In-Reply-To: <1369310411-35652-1-git-send-email-libo.chen@huawei.com>

maybe I make a mistake, please drop it.

于 2013-5-23 20:00, Libo Chen 写道:
> use module_platform_driver() macro to replace the module init/exit
> 
> Signed-off-by: Libo Chen<libo.chen@huawei.com>
> ---
>   drivers/i2c/busses/i2c-pxa.c |   10 +---------
>   1 files changed, 1 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
> index 7b10102..e9c3524 100644
> --- a/drivers/i2c/busses/i2c-pxa.c
> +++ b/drivers/i2c/busses/i2c-pxa.c
> @@ -1242,15 +1242,7 @@ static struct platform_driver i2c_pxa_driver = {
>   	.id_table	= i2c_pxa_id_table,
>   };
>   
> -static int __init i2c_adap_pxa_init(void)
> -{
> -	return platform_driver_register(&i2c_pxa_driver);
> -}
> -
> -static void __exit i2c_adap_pxa_exit(void)
> -{
> -	platform_driver_unregister(&i2c_pxa_driver);
> -}
> +module_platform_driver(i2c_pxa_driver);
>   
>   MODULE_LICENSE("GPL");
>   MODULE_ALIAS("platform:pxa2xx-i2c");


  reply	other threads:[~2013-05-23 13:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23 12:00 [PATCH RFC v3 3/3] i2c: pxa: use module_platform_driver() replace init/exit Libo Chen
2013-05-23 13:48 ` Libo Chen [this message]
2013-06-12 10:03   ` Wolfram Sang
2013-06-12 10:05     ` 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=519E1E26.3060106@gmail.com \
    --to=chenlibo.3@gmail.com \
    --cc=guz.fnst@cn.fujitsu.com \
    --cc=libo.chen@huawei.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sonic.zhang@analog.com \
    --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