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