Changeset 513 for lm-sensors/trunk/kernel/chips/gl518sm.c
- Timestamp:
- 07/23/99 13:43:58 (14 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/chips/gl518sm.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/gl518sm.c
r510 r513 28 28 #include "version.h" 29 29 #include "compat.h" 30 31 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,53) 32 #include <linux/init.h> 33 #else 34 #define __init 35 #endif 30 36 31 37 /* Addresses to scan */ … … 169 175 #endif /* MODULE */ 170 176 171 static int gl518_init(void);172 static int gl518_cleanup(void);177 static int __init gl518_init(void); 178 static int __init gl518_cleanup(void); 173 179 static int gl518_attach_adapter(struct i2c_adapter *adapter); 174 180 static int gl518_detect(struct i2c_adapter *adapter, int address, int kind); … … 249 255 250 256 /* Used by init/cleanup */ 251 static int gl518_initialized = 0;257 static int __init gl518_initialized = 0; 252 258 253 259 /* I choose here for semi-static GL518SM allocation. Complete dynamic … … 898 904 } 899 905 900 int gl518_init(void)906 int __init gl518_init(void) 901 907 { 902 908 int res; … … 913 919 } 914 920 915 int gl518_cleanup(void)921 int __init gl518_cleanup(void) 916 922 { 917 923 int res; … … 928 934 } 929 935 936 EXPORT_NO_SYMBOLS; 930 937 931 938 #ifdef MODULE
