public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Jingoo Han <jg1.han@samsung.com>
To: 'David Woodhouse' <dwmw2@infradead.org>
Cc: 'Jingoo Han' <jg1.han@samsung.com>, linux-mtd@lists.infradead.org
Subject: [PATCH 4/7] mtd: fsmc_nand: use module_platform_driver_probe()
Date: Tue, 05 Mar 2013 13:30:36 +0900	[thread overview]
Message-ID: <005f01ce195a$2f04d540$8d0e7fc0$%han@samsung.com> (raw)
In-Reply-To: <005c01ce1959$e5833c90$b089b5b0$%han@samsung.com>

This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/mtd/nand/fsmc_nand.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index 05ba3f0..911e243 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -1235,18 +1235,7 @@ static struct platform_driver fsmc_nand_driver = {
 	},
 };
 
-static int __init fsmc_nand_init(void)
-{
-	return platform_driver_probe(&fsmc_nand_driver,
-				     fsmc_nand_probe);
-}
-module_init(fsmc_nand_init);
-
-static void __exit fsmc_nand_exit(void)
-{
-	platform_driver_unregister(&fsmc_nand_driver);
-}
-module_exit(fsmc_nand_exit);
+module_platform_driver_probe(fsmc_nand_driver, fsmc_nand_probe);
 
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Vipin Kumar <vipin.kumar@st.com>, Ashish Priyadarshi");
-- 
1.7.2.5

  parent reply	other threads:[~2013-03-05  4:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05  4:28 [PATCH 1/7] mtd: docg3: use module_platform_driver_probe() Jingoo Han
2013-03-05  4:29 ` [PATCH 2/7] mtd: orion_nand: " Jingoo Han
2013-03-05  4:30 ` [PATCH 3/7] mtd: atmel_nand: " Jingoo Han
2013-03-05  4:30 ` Jingoo Han [this message]
2013-03-05  4:30 ` [PATCH 5/7] mtd: sh_flctl: " Jingoo Han
2013-03-05  4:31 ` [PATCH 6/7] mtd: txx9ndfmc: " Jingoo Han
2013-03-05  4:31 ` [PATCH 7/7] mtd: davinci_nand: " Jingoo Han
2013-03-13 11:32 ` [PATCH 1/7] mtd: docg3: " 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='005f01ce195a$2f04d540$8d0e7fc0$%han@samsung.com' \
    --to=jg1.han@samsung.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /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