summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/au1550nd.c
diff options
context:
space:
mode:
authorDavid Woodhouse2006-05-16 14:54:50 +0200
committerDavid Woodhouse2006-05-16 14:54:50 +0200
commitcead4dbc03ba6eb2e35bac04439b76a0cc2286ce (patch)
tree7563bdedb51b496ee57f5f1b7141305d59dcddf1 /drivers/mtd/nand/au1550nd.c
parentdrivers/mtd/devices/docprobe.c: correct #if's (diff)
downloadkernel-qcow2-linux-cead4dbc03ba6eb2e35bac04439b76a0cc2286ce.tar.gz
kernel-qcow2-linux-cead4dbc03ba6eb2e35bac04439b76a0cc2286ce.tar.xz
kernel-qcow2-linux-cead4dbc03ba6eb2e35bac04439b76a0cc2286ce.zip
[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/au1550nd.c')
-rw-r--r--drivers/mtd/nand/au1550nd.c4
1 files changed, 1 insertions, 3 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)
/*
* Main initialization routine
*/
-int __init au1xxx_nand_init(void)
+static int __init au1xxx_nand_init(void)
{
struct nand_chip *this;
u16 boot_swapboot = 0; /* default value */
@@ -480,7 +480,6 @@ module_init(au1xxx_nand_init);
/*
* Clean up routine
*/
-#ifdef MODULE
static void __exit au1550_cleanup(void)
{
struct nand_chip *this = (struct nand_chip *)&au1550_mtd[1];
@@ -496,7 +495,6 @@ static void __exit au1550_cleanup(void)
}
module_exit(au1550_cleanup);
-#endif
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Embedded Edge, LLC");