diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-16 08:54:50 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-16 08:54:50 -0400 |
commit | cead4dbc03ba6eb2e35bac04439b76a0cc2286ce (patch) | |
tree | 7563bdedb51b496ee57f5f1b7141305d59dcddf1 /drivers/mtd/nand/autcpu12.c | |
parent | ce589a0328866228412ea0df2c834688da8f4700 (diff) |
[MTD NAND] Make various initfuncs static, remove #ifdef MODULE from exitfuncs
We all inherited the same error from the original NAND board driver which
got copied and changed. Fix them all at once...
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nand/autcpu12.c')
-rw-r--r-- | drivers/mtd/nand/autcpu12.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/autcpu12.c b/drivers/mtd/nand/autcpu12.c index 330deb032217..43b296040d7f 100644 --- a/drivers/mtd/nand/autcpu12.c +++ b/drivers/mtd/nand/autcpu12.c | |||
@@ -124,7 +124,7 @@ int autcpu12_device_ready(struct mtd_info *mtd) | |||
124 | /* | 124 | /* |
125 | * Main initialization routine | 125 | * Main initialization routine |
126 | */ | 126 | */ |
127 | int __init autcpu12_init(void) | 127 | static int __init autcpu12_init(void) |
128 | { | 128 | { |
129 | struct nand_chip *this; | 129 | struct nand_chip *this; |
130 | int err = 0; | 130 | int err = 0; |
@@ -203,7 +203,6 @@ module_init(autcpu12_init); | |||
203 | /* | 203 | /* |
204 | * Clean up routine | 204 | * Clean up routine |
205 | */ | 205 | */ |
206 | #ifdef MODULE | ||
207 | static void __exit autcpu12_cleanup(void) | 206 | static void __exit autcpu12_cleanup(void) |
208 | { | 207 | { |
209 | /* Release resources, unregister device */ | 208 | /* Release resources, unregister device */ |
@@ -217,7 +216,6 @@ static void __exit autcpu12_cleanup(void) | |||
217 | } | 216 | } |
218 | 217 | ||
219 | module_exit(autcpu12_cleanup); | 218 | module_exit(autcpu12_cleanup); |
220 | #endif | ||
221 | 219 | ||
222 | MODULE_LICENSE("GPL"); | 220 | MODULE_LICENSE("GPL"); |
223 | MODULE_AUTHOR("Thomas Gleixner <tglx@linutronix.de>"); | 221 | MODULE_AUTHOR("Thomas Gleixner <tglx@linutronix.de>"); |