Changeset 513 for lm-sensors/trunk/kernel/chips/eeprom.c
- Timestamp:
- 07/23/99 13:43:58 (14 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/chips/eeprom.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/eeprom.c
r499 r513 28 28 #include "compat.h" 29 29 30 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,53) 31 #include <linux/init.h> 32 #else 33 #define __init 34 #endif 35 36 30 37 /* Addresses to scan */ 31 38 static unsigned short normal_i2c[] = {SENSORS_I2C_END}; … … 75 82 #endif /* MODULE */ 76 83 77 static int eeprom_init(void);78 static int eeprom_cleanup(void);84 static int __init eeprom_init(void); 85 static int __init eeprom_cleanup(void); 79 86 80 87 static int eeprom_attach_adapter(struct i2c_adapter *adapter); … … 134 141 135 142 /* Used by init/cleanup */ 136 static int eeprom_initialized = 0;143 static int __init eeprom_initialized = 0; 137 144 138 145 /* I choose here for semi-static LM78 allocation. Complete dynamic … … 384 391 } 385 392 386 int eeprom_init(void)393 int __init eeprom_init(void) 387 394 { 388 395 int res; … … 399 406 } 400 407 401 int eeprom_cleanup(void)408 int __init eeprom_cleanup(void) 402 409 { 403 410 int res; … … 414 421 } 415 422 423 EXPORT_NO_SYMBOLS; 416 424 417 425 #ifdef MODULE
