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/rtc_from4.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/rtc_from4.c')
-rw-r--r-- | drivers/mtd/nand/rtc_from4.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/rtc_from4.c b/drivers/mtd/nand/rtc_from4.c index 0c56a6629128..bc9d849fbd5d 100644 --- a/drivers/mtd/nand/rtc_from4.c +++ b/drivers/mtd/nand/rtc_from4.c | |||
@@ -516,7 +516,7 @@ static int rtc_from4_errstat(struct mtd_info *mtd, struct nand_chip *this, int s | |||
516 | /* | 516 | /* |
517 | * Main initialization routine | 517 | * Main initialization routine |
518 | */ | 518 | */ |
519 | int __init rtc_from4_init(void) | 519 | static int __init rtc_from4_init(void) |
520 | { | 520 | { |
521 | struct nand_chip *this; | 521 | struct nand_chip *this; |
522 | unsigned short bcr1, bcr2, wcr2; | 522 | unsigned short bcr1, bcr2, wcr2; |
@@ -637,7 +637,6 @@ module_init(rtc_from4_init); | |||
637 | /* | 637 | /* |
638 | * Clean up routine | 638 | * Clean up routine |
639 | */ | 639 | */ |
640 | #ifdef MODULE | ||
641 | static void __exit rtc_from4_cleanup(void) | 640 | static void __exit rtc_from4_cleanup(void) |
642 | { | 641 | { |
643 | /* Release resource, unregister partitions */ | 642 | /* Release resource, unregister partitions */ |
@@ -655,7 +654,6 @@ static void __exit rtc_from4_cleanup(void) | |||
655 | } | 654 | } |
656 | 655 | ||
657 | module_exit(rtc_from4_cleanup); | 656 | module_exit(rtc_from4_cleanup); |
658 | #endif | ||
659 | 657 | ||
660 | MODULE_LICENSE("GPL"); | 658 | MODULE_LICENSE("GPL"); |
661 | MODULE_AUTHOR("d.marlin <dmarlin@redhat.com"); | 659 | MODULE_AUTHOR("d.marlin <dmarlin@redhat.com"); |