[PATCH] drivers/char/nvram.c: possible cleanups

This patch contains the following possible cleanups:
- make the needlessly global function __nvram_set_checksum static
- #if 0 the unused global function nvram_set_checksum
- remove the EXPORT_SYMBOL's for both functions

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Adrian Bunk and committed by Linus Torvalds 681ea4b9 3b01b47c

+3 -5
+3 -3
drivers/char/nvram.c
··· 211 211 return rv; 212 212 } 213 213 214 - void 214 + static void 215 215 __nvram_set_checksum(void) 216 216 { 217 217 mach_set_checksum(); 218 218 } 219 219 220 + #if 0 220 221 void 221 222 nvram_set_checksum(void) 222 223 { ··· 227 226 __nvram_set_checksum(); 228 227 spin_unlock_irqrestore(&rtc_lock, flags); 229 228 } 229 + #endif /* 0 */ 230 230 231 231 /* 232 232 * The are the file operation function for user access to /dev/nvram ··· 923 921 EXPORT_SYMBOL(nvram_write_byte); 924 922 EXPORT_SYMBOL(__nvram_check_checksum); 925 923 EXPORT_SYMBOL(nvram_check_checksum); 926 - EXPORT_SYMBOL(__nvram_set_checksum); 927 - EXPORT_SYMBOL(nvram_set_checksum); 928 924 MODULE_ALIAS_MISCDEV(NVRAM_MINOR);
-2
include/linux/nvram.h
··· 20 20 extern void nvram_write_byte(unsigned char c, int i); 21 21 extern int __nvram_check_checksum(void); 22 22 extern int nvram_check_checksum(void); 23 - extern void __nvram_set_checksum(void); 24 - extern void nvram_set_checksum(void); 25 23 #endif 26 24 27 25 #endif /* _LINUX_NVRAM_H */