Changeset 929

Show
Ignore:
Timestamp:
11/18/00 12:38:15 (8 years ago)
Author:
frodo
Message:

Applied patch of Chip Salzenberg <chip@valinux.com>:

Better #ifdefs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/kernel/chips/adm1021.c

    r904 r929  
    3030#include <linux/init.h> 
    3131 
    32 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     32#ifndef init_MUTEX 
    3333#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3434#endif 
    3535 
    36 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     36#ifndef THIS_MODULE 
    3737#define THIS_MODULE NULL 
    3838#endif 
  • lm-sensors/trunk/kernel/chips/adm9240.c

    r707 r929  
    6464#include <linux/init.h> 
    6565 
    66 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     66#ifndef init_MUTEX 
    6767#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    6868#endif 
    6969 
    70 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     70#ifndef THIS_MODULE 
    7171#define THIS_MODULE NULL 
    7272#endif 
  • lm-sensors/trunk/kernel/chips/eeprom.c

    r717 r929  
    3030#include <linux/init.h> 
    3131 
    32 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     32#ifndef init_MUTEX 
    3333#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3434#endif 
    3535 
    36 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     36#ifndef THIS_MODULE 
    3737#define THIS_MODULE NULL 
    3838#endif 
  • lm-sensors/trunk/kernel/chips/gl518sm.c

    r709 r929  
    3535#endif 
    3636 
    37 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     37#ifndef init_MUTEX 
    3838#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3939#endif 
    4040 
    41 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     41#ifndef THIS_MODULE 
    4242#define THIS_MODULE NULL 
    4343#endif 
  • lm-sensors/trunk/kernel/chips/lm75.c

    r852 r929  
    2929 
    3030 
    31 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     31#ifndef init_MUTEX 
    3232#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3333#endif 
    3434 
    35 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     35#ifndef THIS_MODULE 
    3636#define THIS_MODULE NULL 
    3737#endif 
  • lm-sensors/trunk/kernel/chips/lm78.c

    r707 r929  
    3434#include <linux/init.h> 
    3535 
    36 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     36#ifndef init_MUTEX 
    3737#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3838#endif 
    3939 
    40 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     40#ifndef THIS_MODULE 
    4141#define THIS_MODULE NULL 
    4242#endif 
  • lm-sensors/trunk/kernel/chips/lm80.c

    r707 r929  
    3535#include <linux/init.h> 
    3636 
    37 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     37#ifndef init_MUTEX 
    3838#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3939#endif 
    4040 
    41 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     41#ifndef THIS_MODULE 
    4242#define THIS_MODULE NULL 
    4343#endif 
  • lm-sensors/trunk/kernel/chips/ltc1710.c

    r707 r929  
    5252 
    5353 
    54 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     54#ifndef init_MUTEX 
    5555#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    5656#endif 
    5757 
    58 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     58#ifndef THIS_MODULE 
    5959#define THIS_MODULE NULL 
    6060#endif 
  • lm-sensors/trunk/kernel/chips/sis5595.c

    r707 r929  
    3838 
    3939 
    40 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     40#ifndef init_MUTEX 
    4141#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    4242#endif 
    4343 
    44 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     44#ifndef THIS_MODULE 
    4545#define THIS_MODULE NULL 
    4646#endif 
  • lm-sensors/trunk/kernel/chips/w83781d.c

    r918 r929  
    4848#include <linux/init.h> 
    4949 
    50 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     50#ifndef init_MUTEX 
    5151#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    5252#endif 
    5353 
    54 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     54#ifndef THIS_MODULE 
    5555#define THIS_MODULE NULL 
    5656#endif 
  • lm-sensors/trunk/kernel/sensors.c

    r868 r929  
    4242#endif                          /* MODULE */ 
    4343 
    44 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,13) 
     44#ifndef THIS_MODULE 
    4545#define THIS_MODULE NULL 
    4646#endif