public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/6] mtd: s3c2410: Use module_platform_driver()
@ 2012-07-16 10:32 Sachin Kamat
  2012-07-16 10:32 ` [PATCH 2/6] mtd: s3c2410: Use pr_* instead of printk Sachin Kamat
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Sachin Kamat @ 2012-07-16 10:32 UTC (permalink / raw)
  To: linux-mtd; +Cc: sachin.kamat, dwmw2, David.Woodhouse, ben-linux, patches

This makes the code simpler by eliminating module_init() and
module_exit().

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/mtd/nand/s3c2410.c |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)

diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index 91121f3..8f9267f 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -1134,20 +1134,7 @@ static struct platform_driver s3c24xx_nand_driver = {
 	},
 };
 
-static int __init s3c2410_nand_init(void)
-{
-	printk("S3C24XX NAND Driver, (c) 2004 Simtec Electronics\n");
-
-	return platform_driver_register(&s3c24xx_nand_driver);
-}
-
-static void __exit s3c2410_nand_exit(void)
-{
-	platform_driver_unregister(&s3c24xx_nand_driver);
-}
-
-module_init(s3c2410_nand_init);
-module_exit(s3c2410_nand_exit);
+module_platform_driver(s3c24xx_nand_driver);
 
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-08-21  4:51 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-16 10:32 [PATCH 1/6] mtd: s3c2410: Use module_platform_driver() Sachin Kamat
2012-07-16 10:32 ` [PATCH 2/6] mtd: s3c2410: Use pr_* instead of printk Sachin Kamat
2012-08-19 11:07   ` Artem Bityutskiy
2012-07-16 10:32 ` [PATCH 3/6] mtd: s3c2410: Use <linux/io.h> instead of <asm/io.h> Sachin Kamat
2012-07-16 10:32 ` [PATCH 4/6] mtd: s3c2410: Do not initialise statics to 0 or NULL Sachin Kamat
2012-07-16 10:32 ` [PATCH 5/6] mtd: s3c2410: Fix checkpatch warnings and errors related to whitespaces Sachin Kamat
2012-08-19 11:08   ` Artem Bityutskiy
2012-07-16 10:32 ` [PATCH 6/6] mtd: s3c2410: Fix line over 80 characters warning Sachin Kamat
2012-08-19 11:11   ` Artem Bityutskiy
2012-08-21  4:51     ` Sachin Kamat
2012-08-03  4:47 ` [PATCH 1/6] mtd: s3c2410: Use module_platform_driver() Sachin Kamat
2012-08-08  9:30   ` Sachin Kamat
2012-08-16  5:23     ` Sachin Kamat
2012-08-17 12:46 ` Artem Bityutskiy
2012-08-18  6:21   ` Sachin Kamat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox