Changeset 1457

Show
Ignore:
Timestamp:
07/15/02 12:08:40 (11 years ago)
Author:
abz
Message:

Only use exit in 2.4.xx and later kernels.

Location:
lm-sensors/trunk/kernel/chips
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/ds1307.c

    r1433 r1457  
    318318static void ds1307_inc_use (struct i2c_client *client) 
    319319{ 
     320#ifdef MODULE 
    320321        MOD_INC_USE_COUNT; 
     322#endif  /* #ifdef MODULE */ 
    321323} 
    322324 
    323325static void ds1307_dec_use (struct i2c_client *client) 
    324326{ 
     327#ifdef MODULE 
    325328        MOD_DEC_USE_COUNT; 
     329#endif  /* #ifdef MODULE */ 
    326330} 
    327331 
     
    349353} 
    350354 
     355#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)) 
     356#undef __exit 
     357#define __exit 
     358#endif  /* #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)) */ 
     359 
    351360static void __exit ds1307_exit (void) 
    352361{ 
  • lm-sensors/trunk/kernel/chips/lm92.c

    r1448 r1457  
    407407} 
    408408 
     409#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)) 
     410#undef __exit 
     411#define __exit 
     412#endif  /* #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)) */ 
     413 
    409414static void __exit sensors_lm92_exit (void) 
    410415{