aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-05-16 08:54:50 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-16 08:54:50 -0400
commitcead4dbc03ba6eb2e35bac04439b76a0cc2286ce (patch)
tree7563bdedb51b496ee57f5f1b7141305d59dcddf1 /drivers
parentce589a0328866228412ea0df2c834688da8f4700 (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')
-rw-r--r--drivers/mtd/nand/au1550nd.c4
-rw-r--r--drivers/mtd/nand/autcpu12.c4
-rw-r--r--drivers/mtd/nand/cs553x_nand.c2
-rw-r--r--drivers/mtd/nand/rtc_from4.c4
-rw-r--r--drivers/mtd/nand/sharpsl.c4
-rw-r--r--drivers/mtd/nand/spia.c4
-rw-r--r--drivers/mtd/nand/toto.c2
7 files changed, 7 insertions, 17 deletions
diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd/nand/au1550nd.c
index 87d34351a86d..861fb961d942 100644
--- a/drivers/mtd/nand/au1550nd.c
+++ b/drivers/mtd/nand/au1550nd.c
@@ -321,7 +321,7 @@ int au1550_device_ready(struct mtd_info *mtd)
321/* 321/*
322 * Main initialization routine 322 * Main initialization routine
323 */ 323 */
324int __init au1xxx_nand_init(void) 324static int __init au1xxx_nand_init(void)
325{ 325{
326 struct nand_chip *this; 326 struct nand_chip *this;
327 u16 boot_swapboot = 0; /* default value */ 327 u16 boot_swapboot = 0; /* default value */
@@ -480,7 +480,6 @@ module_init(au1xxx_nand_init);
480/* 480/*
481 * Clean up routine 481 * Clean up routine
482 */ 482 */
483#ifdef MODULE
484static void __exit au1550_cleanup(void) 483static void __exit au1550_cleanup(void)
485{ 484{
486 struct nand_chip *this = (struct nand_chip *)&au1550_mtd[1]; 485 struct nand_chip *this = (struct nand_chip *)&au1550_mtd[1];
@@ -496,7 +495,6 @@ static void __exit au1550_cleanup(void)
496} 495}
497 496
498module_exit(au1550_cleanup); 497module_exit(au1550_cleanup);
499#endif
500 498
501MODULE_LICENSE("GPL"); 499MODULE_LICENSE("GPL");
502MODULE_AUTHOR("Embedded Edge, LLC"); 500MODULE_AUTHOR("Embedded Edge, LLC");
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 */
127int __init autcpu12_init(void) 127static 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
207static void __exit autcpu12_cleanup(void) 206static 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
219module_exit(autcpu12_cleanup); 218module_exit(autcpu12_cleanup);
220#endif
221 219
222MODULE_LICENSE("GPL"); 220MODULE_LICENSE("GPL");
223MODULE_AUTHOR("Thomas Gleixner <tglx@linutronix.de>"); 221MODULE_AUTHOR("Thomas Gleixner <tglx@linutronix.de>");
diff --git a/drivers/mtd/nand/cs553x_nand.c b/drivers/mtd/nand/cs553x_nand.c
index d5b05514bb8b..bf251253ea1f 100644
--- a/drivers/mtd/nand/cs553x_nand.c
+++ b/drivers/mtd/nand/cs553x_nand.c
@@ -267,7 +267,7 @@ out:
267 return err; 267 return err;
268} 268}
269 269
270int __init cs553x_init(void) 270static int __init cs553x_init(void)
271{ 271{
272 int err = -ENXIO; 272 int err = -ENXIO;
273 int i; 273 int i;
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 */
519int __init rtc_from4_init(void) 519static 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
641static void __exit rtc_from4_cleanup(void) 640static 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
657module_exit(rtc_from4_cleanup); 656module_exit(rtc_from4_cleanup);
658#endif
659 657
660MODULE_LICENSE("GPL"); 658MODULE_LICENSE("GPL");
661MODULE_AUTHOR("d.marlin <dmarlin@redhat.com"); 659MODULE_AUTHOR("d.marlin <dmarlin@redhat.com");
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 */
158int __init sharpsl_nand_init(void) 158static 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
261static void __exit sharpsl_nand_cleanup(void) 260static 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
274module_exit(sharpsl_nand_cleanup); 273module_exit(sharpsl_nand_cleanup);
275#endif
276 274
277MODULE_LICENSE("GPL"); 275MODULE_LICENSE("GPL");
278MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>"); 276MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>");
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 */
104int __init spia_init(void) 104static 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
159static void __exit spia_cleanup(void) 158static 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
168module_exit(spia_cleanup); 167module_exit(spia_cleanup);
169#endif
170 168
171MODULE_LICENSE("GPL"); 169MODULE_LICENSE("GPL");
172MODULE_AUTHOR("Steven J. Hill <sjhill@realitydiluted.com"); 170MODULE_AUTHOR("Steven J. Hill <sjhill@realitydiluted.com");
diff --git a/drivers/mtd/nand/toto.c b/drivers/mtd/nand/toto.c
index 24cfa9e2e025..c51c89559514 100644
--- a/drivers/mtd/nand/toto.c
+++ b/drivers/mtd/nand/toto.c
@@ -115,7 +115,7 @@ static void toto_hwcontrol(struct mtd_info *mtd, int cmd)
115/* 115/*
116 * Main initialization routine 116 * Main initialization routine
117 */ 117 */
118int __init toto_init(void) 118static int __init toto_init(void)
119{ 119{
120 struct nand_chip *this; 120 struct nand_chip *this;
121 int err = 0; 121 int err = 0;