Show
Ignore:
Timestamp:
07/23/99 13:43:58 (15 years ago)
Author:
frodo
Message:

First step to make it possible to integrate lm_sensors modules into

the kernel.

* <kernel/init.h> is now included for all modules
* Initialization-time only functions and variables are marked with init
* EXPORT_SYMBOL or EXPORT_NO_SYMBOLS declarations added

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/busses/i2c-viapro.c

    r509 r513  
    3636#include <linux/bios32.h> 
    3737#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 
    3845 
    3946#ifndef PCI_DEVICE_ID_VIA_82C596_3 
     
    101108                            "EXTREMELY DANGEROUS!"); 
    102109 
    103 static int vt596_init(void); 
    104 static int vt596_cleanup(void); 
     110static int __init vt596_init(void); 
     111static int __init vt596_cleanup(void); 
    105112static int vt596_setup(void); 
    106113static s32 vt596_access(struct i2c_adapter *adap, u8 addr, char read_write, 
     
    137144}; 
    138145 
    139 static int vt596_initialized; 
     146static int __init vt596_initialized; 
    140147static unsigned short vt596_smba = 0; 
    141148 
     
    471478} 
    472479 
    473 int vt596_init(void) 
     480int __init vt596_init(void) 
    474481{ 
    475482  int res; 
     
    500507} 
    501508 
    502 int vt596_cleanup(void) 
     509int __init vt596_cleanup(void) 
    503510{ 
    504511  int res; 
     
    518525} 
    519526 
     527EXPORT_NO_SYMBOLS; 
     528 
    520529#ifdef MODULE 
    521530 
     
    523532MODULE_DESCRIPTION("vt82c596 SMBus driver"); 
    524533 
     534 
    525535int init_module(void) 
    526536{