From: Libo Chen <clbchenlibo.chen@huawei.com>
To: <dwmw2@infradead.org>, Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: "Li Zefan" <lizefan@huawei.com>,
artem.bityutskiy@linux.intel.com,
"Rafał Miłecki" <zajec5@gmail.com>,
LKML <linux-kernel@vger.kernel.org>,
"Bill Pemberton" <wfp5p@virginia.edu>,
linux-mtd@lists.infradead.org, hauke@hauke-m.de
Subject: [PATCH RESEND 2/2] mtd: bcm47: convert to module_platform_driver instead of init/exit
Date: Thu, 30 May 2013 10:22:16 +0800 [thread overview]
Message-ID: <51A6B7D8.8090600@huawei.com> (raw)
convert to module_platform_driver instead of init/exit
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Libo chen <libo.chen@huawei.com>
---
drivers/mtd/devices/bcm47xxsflash.c | 20 +-------------------
1 files changed, 1 insertions(+), 19 deletions(-)
diff --git a/drivers/mtd/devices/bcm47xxsflash.c b/drivers/mtd/devices/bcm47xxsflash.c
index 2630d5c..54230cd 100644
--- a/drivers/mtd/devices/bcm47xxsflash.c
+++ b/drivers/mtd/devices/bcm47xxsflash.c
@@ -108,22 +108,4 @@ static struct platform_driver bcma_sflash_driver = {
* Init
**************************************************/
-static int __init bcm47xxsflash_init(void)
-{
- int err;
-
- err = platform_driver_register(&bcma_sflash_driver);
- if (err)
- pr_err("Failed to register BCMA serial flash driver: %d\n",
- err);
-
- return err;
-}
-
-static void __exit bcm47xxsflash_exit(void)
-{
- platform_driver_unregister(&bcma_sflash_driver);
-}
-
-module_init(bcm47xxsflash_init);
-module_exit(bcm47xxsflash_exit);
+module_platform_driver(bcma_sflash_driver);
--
1.7.1
WARNING: multiple messages have this Message-ID (diff)
From: Libo Chen <clbchenlibo.chen@huawei.com>
To: <dwmw2@infradead.org>, Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: "Rafał Miłecki" <zajec5@gmail.com>,
artem.bityutskiy@linux.intel.com,
"Bill Pemberton" <wfp5p@virginia.edu>,
hauke@hauke-m.de, linux-mtd@lists.infradead.org,
LKML <linux-kernel@vger.kernel.org>,
"Li Zefan" <lizefan@huawei.com>
Subject: [PATCH RESEND 2/2] mtd: bcm47: convert to module_platform_driver instead of init/exit
Date: Thu, 30 May 2013 10:22:16 +0800 [thread overview]
Message-ID: <51A6B7D8.8090600@huawei.com> (raw)
convert to module_platform_driver instead of init/exit
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Libo chen <libo.chen@huawei.com>
---
drivers/mtd/devices/bcm47xxsflash.c | 20 +-------------------
1 files changed, 1 insertions(+), 19 deletions(-)
diff --git a/drivers/mtd/devices/bcm47xxsflash.c b/drivers/mtd/devices/bcm47xxsflash.c
index 2630d5c..54230cd 100644
--- a/drivers/mtd/devices/bcm47xxsflash.c
+++ b/drivers/mtd/devices/bcm47xxsflash.c
@@ -108,22 +108,4 @@ static struct platform_driver bcma_sflash_driver = {
* Init
**************************************************/
-static int __init bcm47xxsflash_init(void)
-{
- int err;
-
- err = platform_driver_register(&bcma_sflash_driver);
- if (err)
- pr_err("Failed to register BCMA serial flash driver: %d\n",
- err);
-
- return err;
-}
-
-static void __exit bcm47xxsflash_exit(void)
-{
- platform_driver_unregister(&bcma_sflash_driver);
-}
-
-module_init(bcm47xxsflash_init);
-module_exit(bcm47xxsflash_exit);
+module_platform_driver(bcma_sflash_driver);
--
1.7.1
next reply other threads:[~2013-05-30 2:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 2:22 Libo Chen [this message]
2013-05-30 2:22 ` [PATCH RESEND 2/2] mtd: bcm47: convert to module_platform_driver instead of init/exit Libo Chen
2013-05-30 10:30 ` Andy Shevchenko
2013-05-30 10:30 ` Andy Shevchenko
2013-05-30 10:55 ` Hauke Mehrtens
2013-05-30 10:55 ` Hauke Mehrtens
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=51A6B7D8.8090600@huawei.com \
--to=clbchenlibo.chen@huawei.com \
--cc=andy.shevchenko@gmail.com \
--cc=artem.bityutskiy@linux.intel.com \
--cc=dwmw2@infradead.org \
--cc=hauke@hauke-m.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=lizefan@huawei.com \
--cc=wfp5p@virginia.edu \
--cc=zajec5@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 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.