From: Adrian Bunk - make 2 needlessly global functions static - #if 0 the unused nettel_eraseconfig() Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- drivers/mtd/maps/nettel.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff -puN drivers/mtd/maps/nettel.c~drivers-mtd-maps-nettelc-possible-cleanups drivers/mtd/maps/nettel.c --- a/drivers/mtd/maps/nettel.c~drivers-mtd-maps-nettelc-possible-cleanups +++ a/drivers/mtd/maps/nettel.c @@ -158,6 +158,8 @@ static struct notifier_block nettel_noti nettel_reboot_notifier, NULL, 0 }; +#if 0 + /* * Erase the configuration file system. * Used to support the software reset button. @@ -208,18 +210,22 @@ int nettel_eraseconfig(void) return(0); } +#endif /* 0 */ + #else +#if 0 int nettel_eraseconfig(void) { return(0); } +#endif /* 0 */ #endif /****************************************************************************/ -int __init nettel_init(void) +static int __init nettel_init(void) { volatile unsigned long *amdpar; unsigned long amdaddr, maxsize; @@ -477,7 +483,7 @@ out_unmap2: /****************************************************************************/ -void __exit nettel_cleanup(void) +static void __exit nettel_cleanup(void) { #ifdef CONFIG_MTD_CFI_INTELEXT unregister_reboot_notifier(&nettel_notifier_block); _