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/spia.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/spia.c')
-rw-r--r-- | drivers/mtd/nand/spia.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/spia.c b/drivers/mtd/nand/spia.c index b06aada31f79..9737f1d67c3c 100644 --- a/drivers/mtd/nand/spia.c +++ b/drivers/mtd/nand/spia.c | |||
@@ -101,7 +101,7 @@ static void spia_hwcontrol(struct mtd_info *mtd, int cmd) | |||
101 | /* | 101 | /* |
102 | * Main initialization routine | 102 | * Main initialization routine |
103 | */ | 103 | */ |
104 | int __init spia_init(void) | 104 | static int __init spia_init(void) |
105 | { | 105 | { |
106 | struct nand_chip *this; | 106 | struct nand_chip *this; |
107 | 107 | ||
@@ -155,7 +155,6 @@ module_init(spia_init); | |||
155 | /* | 155 | /* |
156 | * Clean up routine | 156 | * Clean up routine |
157 | */ | 157 | */ |
158 | #ifdef MODULE | ||
159 | static void __exit spia_cleanup(void) | 158 | static void __exit spia_cleanup(void) |
160 | { | 159 | { |
161 | /* Release resources, unregister device */ | 160 | /* Release resources, unregister device */ |
@@ -166,7 +165,6 @@ static void __exit spia_cleanup(void) | |||
166 | } | 165 | } |
167 | 166 | ||
168 | module_exit(spia_cleanup); | 167 | module_exit(spia_cleanup); |
169 | #endif | ||
170 | 168 | ||
171 | MODULE_LICENSE("GPL"); | 169 | MODULE_LICENSE("GPL"); |
172 | MODULE_AUTHOR("Steven J. Hill <sjhill@realitydiluted.com"); | 170 | MODULE_AUTHOR("Steven J. Hill <sjhill@realitydiluted.com"); |