[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>
diff --git a/drivers/mtd/nand/spia.c b/drivers/mtd/nand/spia.c
index b06aada..9737f1d 100644
--- a/drivers/mtd/nand/spia.c
+++ b/drivers/mtd/nand/spia.c
@@ -101,7 +101,7 @@
/*
* Main initialization routine
*/
-int __init spia_init(void)
+static int __init spia_init(void)
{
struct nand_chip *this;
@@ -155,7 +155,6 @@
/*
* Clean up routine
*/
-#ifdef MODULE
static void __exit spia_cleanup(void)
{
/* Release resources, unregister device */
@@ -166,7 +165,6 @@
}
module_exit(spia_cleanup);
-#endif
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Steven J. Hill <sjhill@realitydiluted.com");