diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2009-06-10 20:23:33 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2009-09-21 09:14:53 -0400 |
commit | 627df23c61ce28043a0715a941605ab42dfeb05e (patch) | |
tree | e9a21d68092f85d51db126d0ad907f89cb7aa276 /drivers/mtd | |
parent | fe002a419755f991e1219249c8ffe7dc0b798232 (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')
-rw-r--r-- | drivers/mtd/devices/m25p80.c | 4 | ||||
-rw-r--r-- | drivers/mtd/devices/slram.c | 2 | ||||
-rw-r--r-- | drivers/mtd/ftl.c | 2 | ||||
-rw-r--r-- | drivers/mtd/nand/cafe_nand.c | 4 | ||||
-rw-r--r-- | drivers/mtd/nand/cmx270_nand.c | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 10ed195c0c1c..eb495d83064f 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c | |||
@@ -776,13 +776,13 @@ static struct spi_driver m25p80_driver = { | |||
776 | }; | 776 | }; |
777 | 777 | ||
778 | 778 | ||
779 | static int m25p80_init(void) | 779 | static int __init m25p80_init(void) |
780 | { | 780 | { |
781 | return spi_register_driver(&m25p80_driver); | 781 | return spi_register_driver(&m25p80_driver); |
782 | } | 782 | } |
783 | 783 | ||
784 | 784 | ||
785 | static void m25p80_exit(void) | 785 | static void __exit m25p80_exit(void) |
786 | { | 786 | { |
787 | spi_unregister_driver(&m25p80_driver); | 787 | spi_unregister_driver(&m25p80_driver); |
788 | } | 788 | } |
diff --git a/drivers/mtd/devices/slram.c b/drivers/mtd/devices/slram.c index 00248e81ecd5..7d846e9173da 100644 --- a/drivers/mtd/devices/slram.c +++ b/drivers/mtd/devices/slram.c | |||
@@ -303,7 +303,7 @@ __setup("slram=", mtd_slram_setup); | |||
303 | 303 | ||
304 | #endif | 304 | #endif |
305 | 305 | ||
306 | static int init_slram(void) | 306 | static int __init init_slram(void) |
307 | { | 307 | { |
308 | char *devname; | 308 | char *devname; |
309 | int i; | 309 | int i; |
diff --git a/drivers/mtd/ftl.c b/drivers/mtd/ftl.c index a790c062af1f..e56d6b42f020 100644 --- a/drivers/mtd/ftl.c +++ b/drivers/mtd/ftl.c | |||
@@ -1099,7 +1099,7 @@ static struct mtd_blktrans_ops ftl_tr = { | |||
1099 | .owner = THIS_MODULE, | 1099 | .owner = THIS_MODULE, |
1100 | }; | 1100 | }; |
1101 | 1101 | ||
1102 | static int init_ftl(void) | 1102 | static int __init init_ftl(void) |
1103 | { | 1103 | { |
1104 | return register_mtd_blktrans(&ftl_tr); | 1104 | return register_mtd_blktrans(&ftl_tr); |
1105 | } | 1105 | } |
diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c index 29acd06b1c39..1b4690bdfdb3 100644 --- a/drivers/mtd/nand/cafe_nand.c +++ b/drivers/mtd/nand/cafe_nand.c | |||
@@ -903,12 +903,12 @@ static struct pci_driver cafe_nand_pci_driver = { | |||
903 | .resume = cafe_nand_resume, | 903 | .resume = cafe_nand_resume, |
904 | }; | 904 | }; |
905 | 905 | ||
906 | static int cafe_nand_init(void) | 906 | static int __init cafe_nand_init(void) |
907 | { | 907 | { |
908 | return pci_register_driver(&cafe_nand_pci_driver); | 908 | return pci_register_driver(&cafe_nand_pci_driver); |
909 | } | 909 | } |
910 | 910 | ||
911 | static void cafe_nand_exit(void) | 911 | static void __exit cafe_nand_exit(void) |
912 | { | 912 | { |
913 | pci_unregister_driver(&cafe_nand_pci_driver); | 913 | pci_unregister_driver(&cafe_nand_pci_driver); |
914 | } | 914 | } |
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 | */ |
150 | static int cmx270_init(void) | 150 | static 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 | */ |
264 | static void cmx270_cleanup(void) | 264 | static 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); |