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/sharpsl.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/sharpsl.c')
-rw-r--r-- | drivers/mtd/nand/sharpsl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index d375cb3e77d6..60e10c0d6980 100644 --- a/drivers/mtd/nand/sharpsl.c +++ b/drivers/mtd/nand/sharpsl.c | |||
@@ -155,7 +155,7 @@ const char *part_probes[] = { "cmdlinepart", NULL }; | |||
155 | /* | 155 | /* |
156 | * Main initialization routine | 156 | * Main initialization routine |
157 | */ | 157 | */ |
158 | int __init sharpsl_nand_init(void) | 158 | static int __init sharpsl_nand_init(void) |
159 | { | 159 | { |
160 | struct nand_chip *this; | 160 | struct nand_chip *this; |
161 | struct mtd_partition *sharpsl_partition_info; | 161 | struct mtd_partition *sharpsl_partition_info; |
@@ -257,7 +257,6 @@ module_init(sharpsl_nand_init); | |||
257 | /* | 257 | /* |
258 | * Clean up routine | 258 | * Clean up routine |
259 | */ | 259 | */ |
260 | #ifdef MODULE | ||
261 | static void __exit sharpsl_nand_cleanup(void) | 260 | static void __exit sharpsl_nand_cleanup(void) |
262 | { | 261 | { |
263 | struct nand_chip *this = (struct nand_chip *)&sharpsl_mtd[1]; | 262 | struct nand_chip *this = (struct nand_chip *)&sharpsl_mtd[1]; |
@@ -272,7 +271,6 @@ static void __exit sharpsl_nand_cleanup(void) | |||
272 | } | 271 | } |
273 | 272 | ||
274 | module_exit(sharpsl_nand_cleanup); | 273 | module_exit(sharpsl_nand_cleanup); |
275 | #endif | ||
276 | 274 | ||
277 | MODULE_LICENSE("GPL"); | 275 | MODULE_LICENSE("GPL"); |
278 | MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>"); | 276 | MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>"); |