summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/spia.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/spia.c')
-rw-r--r--drivers/mtd/nand/spia.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/spia.c b/drivers/mtd/nand/spia.c
index b06aada31f7..9737f1d67c3 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)
/*
* Main initialization routine
*/
-int __init spia_init(void)
+static int __init spia_init(void)
{
struct nand_chip *this;
@@ -155,7 +155,6 @@ module_init(spia_init);
/*
* Clean up routine
*/
-#ifdef MODULE
static void __exit spia_cleanup(void)
{
/* Release resources, unregister device */
@@ -166,7 +165,6 @@ static void __exit spia_cleanup(void)
}
module_exit(spia_cleanup);
-#endif
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Steven J. Hill <sjhill@realitydiluted.com");