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/chips/icspll.c

    r499 r513  
    3535#include "i2c-isa.h" 
    3636#include "version.h" 
     37#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,53) 
     38#include <linux/init.h> 
     39#else 
     40#define __init 
     41#endif 
     42 
    3743 
    3844/* Many constants specified below */ 
     
    5864#endif /* MODULE */ 
    5965 
    60 static int icspll_init(void); 
    61 static int icspll_cleanup(void); 
     66static int __init icspll_init(void); 
     67static int __init icspll_cleanup(void); 
    6268 
    6369static int icspll_attach_adapter(struct i2c_adapter *adapter); 
     
    105111 
    106112/* Used by init/cleanup */ 
    107 static int icspll_initialized = 0; 
     113static int __init icspll_initialized = 0; 
    108114 
    109115/* I choose here for semi-static allocation. Complete dynamic 
     
    314320} 
    315321 
    316 int icspll_init(void) 
     322int __init icspll_init(void) 
    317323{ 
    318324  int res; 
     
    329335} 
    330336 
    331 int icspll_cleanup(void) 
     337int __init icspll_cleanup(void) 
    332338{ 
    333339  int res; 
     
    344350} 
    345351 
     352EXPORT_NO_SYMBOLS; 
    346353 
    347354#ifdef MODULE