aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/cmx270_nand.c
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2009-06-10 20:23:33 -0400
committerJiri Kosina <jkosina@suse.cz>2009-09-21 09:14:53 -0400
commit627df23c61ce28043a0715a941605ab42dfeb05e (patch)
treee9a21d68092f85d51db126d0ad907f89cb7aa276 /drivers/mtd/nand/cmx270_nand.c
parentfe002a419755f991e1219249c8ffe7dc0b798232 (diff)
trivial: mtd: add __init/__exit macros to init/exitfunctions
Trivial patch which adds the __init and __exit macros to the module_init / module_exit functions to the following modules from drivers/mtd/ devices/m25p80.c devices/slram.c linux version 2.6.30 ftl.c nand/cafe_nand.c nand/cmx270_nand.c Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/mtd/nand/cmx270_nand.c')
-rw-r--r--drivers/mtd/nand/cmx270_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/cmx270_nand.c b/drivers/mtd/nand/cmx270_nand.c
index 10081e656a6f..826cacffcefc 100644
--- a/drivers/mtd/nand/cmx270_nand.c
+++ b/drivers/mtd/nand/cmx270_nand.c
@@ -147,7 +147,7 @@ static int cmx270_device_ready(struct mtd_info *mtd)
147/* 147/*
148 * Main initialization routine 148 * Main initialization routine
149 */ 149 */
150static int cmx270_init(void) 150static int __init cmx270_init(void)
151{ 151{
152 struct nand_chip *this; 152 struct nand_chip *this;
153 const char *part_type; 153 const char *part_type;
@@ -261,7 +261,7 @@ module_init(cmx270_init);
261/* 261/*
262 * Clean up routine 262 * Clean up routine
263 */ 263 */
264static void cmx270_cleanup(void) 264static void __exit cmx270_cleanup(void)
265{ 265{
266 /* Release resources, unregister device */ 266 /* Release resources, unregister device */
267 nand_release(cmx270_nand_mtd); 267 nand_release(cmx270_nand_mtd);