Changeset 513 for lm-sensors/trunk/kernel/busses/i2c-viapro.c
- Timestamp:
- 07/23/99 13:43:58 (14 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/busses/i2c-viapro.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-viapro.c
r509 r513 36 36 #include <linux/bios32.h> 37 37 #endif 38 39 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,53) 40 #include <linux/init.h> 41 #else 42 #define __init 43 #endif 44 38 45 39 46 #ifndef PCI_DEVICE_ID_VIA_82C596_3 … … 101 108 "EXTREMELY DANGEROUS!"); 102 109 103 static int vt596_init(void);104 static int vt596_cleanup(void);110 static int __init vt596_init(void); 111 static int __init vt596_cleanup(void); 105 112 static int vt596_setup(void); 106 113 static s32 vt596_access(struct i2c_adapter *adap, u8 addr, char read_write, … … 137 144 }; 138 145 139 static int vt596_initialized;146 static int __init vt596_initialized; 140 147 static unsigned short vt596_smba = 0; 141 148 … … 471 478 } 472 479 473 int vt596_init(void)480 int __init vt596_init(void) 474 481 { 475 482 int res; … … 500 507 } 501 508 502 int vt596_cleanup(void)509 int __init vt596_cleanup(void) 503 510 { 504 511 int res; … … 518 525 } 519 526 527 EXPORT_NO_SYMBOLS; 528 520 529 #ifdef MODULE 521 530 … … 523 532 MODULE_DESCRIPTION("vt82c596 SMBus driver"); 524 533 534 525 535 int init_module(void) 526 536 {
