From: Viresh Kumar <viresh.kumar@st.com>
To: Axel Lin <axel.lin@gmail.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Arnaud Patard <arnaud.patard@rtp-net.org>,
Alessandro Zummo <a.zummo@towertech.it>,
Sylvain Munaut <tnt@246tNt.com>,
Anton Vorontsov <avorontsov@ru.mvista.com>,
Marek Vasut <marek.vasut@gmail.com>,
Florian Fainelli <florian@openwrt.org>,
Mark Miesfeld <mmiesfeld@amcc.com>,
Ashish Kalra <ashish.kalra@freescale.com>,
Paul Mundt <lethal@linux-sh.org>, Jeff Garzik <jgarzik@pobox.com>,
"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
Shiraz HASHIM <shiraz.hashim@st.com>,
Armando VISCONTI <armando.visconti@st.com>
Subject: Re: [PATCH] SATA/PATA: convert drivers/ata/* to use module_platform_driver()
Date: Mon, 28 Nov 2011 09:13:13 +0530 [thread overview]
Message-ID: <4ED30351.7090809@st.com> (raw)
In-Reply-To: <1322376266.2226.3.camel@phoenix>
On 11/27/2011 12:14 PM, Axel Lin wrote:
> This patch converts the drivers in drivers/ata/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
>
> Cc: Viresh Kumar <viresh.kumar@st.com>
> Cc: Jeff Garzik <jgarzik@pobox.com>
> Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
> Cc: Alessandro Zummo <a.zummo@towertech.it>
> Cc: Sylvain Munaut <tnt@246tNt.com>
> Cc: Anton Vorontsov <avorontsov@ru.mvista.com>
> Cc: Marek Vasut <marek.vasut@gmail.com>
> Cc: Florian Fainelli <florian@openwrt.org>
> Cc: Mark Miesfeld <mmiesfeld@amcc.com>
> Cc: Ashish Kalra <ashish.kalra@freescale.com>
> Cc: Paul Mundt <lethal@linux-sh.org>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> drivers/ata/pata_arasan_cf.c | 12 +-----------
> drivers/ata/pata_at91.c | 15 +--------------
> drivers/ata/pata_imx.c | 12 +-----------
> drivers/ata/pata_ixp4xx_cf.c | 13 +------------
> drivers/ata/pata_mpc52xx.c | 21 +--------------------
> drivers/ata/pata_of_platform.c | 12 +-----------
> drivers/ata/pata_palmld.c | 13 +------------
> drivers/ata/pata_platform.c | 12 +-----------
> drivers/ata/pata_pxa.c | 13 +------------
> drivers/ata/pata_rb532_cf.c | 21 ++-------------------
> drivers/ata/sata_dwc_460ex.c | 13 +------------
> drivers/ata/sata_fsl.c | 14 +-------------
> 12 files changed, 13 insertions(+), 158 deletions(-)
>
> diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c
> index e8574bb..048589f 100644
> --- a/drivers/ata/pata_arasan_cf.c
> +++ b/drivers/ata/pata_arasan_cf.c
> @@ -963,17 +963,7 @@ static struct platform_driver arasan_cf_driver = {
> },
> };
>
> -static int __init arasan_cf_init(void)
> -{
> - return platform_driver_register(&arasan_cf_driver);
> -}
> -module_init(arasan_cf_init);
> -
> -static void __exit arasan_cf_exit(void)
> -{
> - platform_driver_unregister(&arasan_cf_driver);
> -}
> -module_exit(arasan_cf_exit);
> +module_platform_driver(arasan_cf_driver);
>
> MODULE_AUTHOR("Viresh Kumar <viresh.kumar@st.com>");
> MODULE_DESCRIPTION("Arasan ATA Compact Flash driver");
For SPEAr:
Acked-by: Viresh Kumar <viresh.kumar@st.com>
--
viresh
next prev parent reply other threads:[~2011-11-28 3:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-27 6:44 [PATCH] SATA/PATA: convert drivers/ata/* to use module_platform_driver() Axel Lin
2011-11-27 7:06 ` Marek Vasut
2011-11-28 3:43 ` Viresh Kumar [this message]
2011-11-28 3:44 ` Viresh Kumar
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=4ED30351.7090809@st.com \
--to=viresh.kumar@st.com \
--cc=a.zummo@towertech.it \
--cc=armando.visconti@st.com \
--cc=arnaud.patard@rtp-net.org \
--cc=ashish.kalra@freescale.com \
--cc=avorontsov@ru.mvista.com \
--cc=axel.lin@gmail.com \
--cc=florian@openwrt.org \
--cc=jgarzik@pobox.com \
--cc=lethal@linux-sh.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marek.vasut@gmail.com \
--cc=mmiesfeld@amcc.com \
--cc=shiraz.hashim@st.com \
--cc=tnt@246tNt.com \
/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).