From: "Jiandong Zheng" <jdzheng@broadcom.com>
To: "Axel Lin" <axel.lin@gmail.com>
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Scott Branden <sbranden@broadcom.com>,
Wan ZongShun <mcuos.com@gmail.com>,
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
Sukumar Ghorai <s-ghorai@ti.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Haojian Zhuang <haojian.zhuang@gmail.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
Vimal Singh <vimal.newwork@gmail.com>,
Ralf Baechle <ralf@linux-mips.org>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
Andres Salomon <dilinger@queued.net>,
Olof Johansson <olof@lixom.net>, Jamie Iles <jamie@jamieiles.com>,
Brian Norris <computersforpeace@gmail.com>,
David Woodhouse <dwmw2@infradead.org>,
Manuel Lauss <manuel.lauss@googlemail.com>
Subject: Re: [PATCH] mtd: convert drivers/mtd/* to use module_platform_driver()
Date: Tue, 29 Nov 2011 11:50:43 -0800 [thread overview]
Message-ID: <4ED53793.80209@broadcom.com> (raw)
In-Reply-To: <1322397903.2799.5.camel@phoenix>
On 11/27/2011 4:45 AM, Axel Lin wrote:
> This patch converts the drivers in drivers/mtd/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
>
> Cc: David Woodhouse<dwmw2@infradead.org>
> Cc: Jiandong Zheng<jdzheng@broadcom.com>
> Cc: Scott Branden<sbranden@broadcom.com>
> Cc: Wan ZongShun<mcuos.com@gmail.com>
> Cc: Dmitry Eremin-Solenikov<dbaryshkov@gmail.com>
> Cc: Jamie Iles<jamie@jamieiles.com>
> Cc: Olof Johansson<olof@lixom.net>
> Cc: Kyungmin Park<kyungmin.park@samsung.com>
> Cc: Haojian Zhuang<haojian.zhuang@gmail.com>
> Cc: Artem Bityutskiy<Artem.Bityutskiy@nokia.com>
> Cc: Ralf Baechle<ralf@linux-mips.org>
> Cc: Brian Norris<computersforpeace@gmail.com>
> Cc: Lars-Peter Clausen<lars@metafoo.de>
> Cc: Manuel Lauss<manuel.lauss@googlemail.com>
> Cc: Vimal Singh<vimal.newwork@gmail.com>
> Cc: Andres Salomon<dilinger@queued.net>
> Cc: Sukumar Ghorai<s-ghorai@ti.com>
> Signed-off-by: Axel Lin<axel.lin@gmail.com>
> ---
> drivers/mtd/nand/bcm_umi_nand.c | 13 +------------
> diff --git a/drivers/mtd/nand/bcm_umi_nand.c b/drivers/mtd/nand/bcm_umi_nand.c
> index 46b58d6..50387fd 100644
> --- a/drivers/mtd/nand/bcm_umi_nand.c
> +++ b/drivers/mtd/nand/bcm_umi_nand.c
> @@ -546,18 +546,7 @@ static struct platform_driver nand_driver = {
> .resume = bcm_umi_nand_resume,
> };
>
> -static int __init nand_init(void)
> -{
> - return platform_driver_register(&nand_driver);
> -}
> -
> -static void __exit nand_exit(void)
> -{
> - platform_driver_unregister(&nand_driver);
> -}
> -
> -module_init(nand_init);
> -module_exit(nand_exit);
> +module_platform_driver(nand_driver);
>
> MODULE_LICENSE("GPL");
> MODULE_AUTHOR("Broadcom");
Acked-by: Jiandong Zheng <jdzheng@broadcom.com>
next prev parent reply other threads:[~2011-11-29 19:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-27 12:45 [PATCH] mtd: convert drivers/mtd/* to use module_platform_driver() Axel Lin
2011-11-27 18:20 ` Olof Johansson
2011-11-28 0:23 ` Kyungmin Park
2011-11-28 0:57 ` Haojian Zhuang
2011-11-28 2:34 ` Wan ZongShun
2011-11-29 20:46 ` David Woodhouse
2011-11-29 19:50 ` Jiandong Zheng [this message]
2011-12-01 8:17 ` Artem Bityutskiy
2011-12-01 8:21 ` Manuel Lauss
2011-12-04 14:14 ` Artem Bityutskiy
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=4ED53793.80209@broadcom.com \
--to=jdzheng@broadcom.com \
--cc=Artem.Bityutskiy@nokia.com \
--cc=axel.lin@gmail.com \
--cc=computersforpeace@gmail.com \
--cc=dbaryshkov@gmail.com \
--cc=dilinger@queued.net \
--cc=dwmw2@infradead.org \
--cc=haojian.zhuang@gmail.com \
--cc=jamie@jamieiles.com \
--cc=kyungmin.park@samsung.com \
--cc=lars@metafoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=manuel.lauss@googlemail.com \
--cc=mcuos.com@gmail.com \
--cc=olof@lixom.net \
--cc=ralf@linux-mips.org \
--cc=s-ghorai@ti.com \
--cc=sbranden@broadcom.com \
--cc=vimal.newwork@gmail.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).