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/gl518sm.c

    r510 r513  
    2828#include "version.h" 
    2929#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 
    3036 
    3137/* Addresses to scan */ 
     
    169175#endif /* MODULE */ 
    170176 
    171 static int gl518_init(void); 
    172 static int gl518_cleanup(void); 
     177static int __init gl518_init(void); 
     178static int __init gl518_cleanup(void); 
    173179static int gl518_attach_adapter(struct i2c_adapter *adapter); 
    174180static int gl518_detect(struct i2c_adapter *adapter, int address, int kind); 
     
    249255 
    250256/* Used by init/cleanup */ 
    251 static int gl518_initialized = 0; 
     257static int __init gl518_initialized = 0; 
    252258 
    253259/* I choose here for semi-static GL518SM allocation. Complete dynamic 
     
    898904} 
    899905 
    900 int gl518_init(void) 
     906int __init gl518_init(void) 
    901907{ 
    902908  int res; 
     
    913919} 
    914920 
    915 int gl518_cleanup(void) 
     921int __init gl518_cleanup(void) 
    916922{ 
    917923  int res; 
     
    928934} 
    929935 
     936EXPORT_NO_SYMBOLS; 
    930937 
    931938#ifdef MODULE