Changeset 933

Show
Ignore:
Timestamp:
11/23/00 00:54:39 (13 years ago)
Author:
frodo
Message:

Updated the MUTEX definitions again - they are now guarded by

the horrible

#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) \

(LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0))

They should now both work with 2.3 kernels (including 2.4 prepatches)
and very new 2.2 kernels (ie. 2.2.18 prepatches)

Location:
lm-sensors/trunk
Files:
23 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r932 r933  
    1919 
    20202.5.5 (2000????) 
    21   Chip modules (all): Update mutex 
     21  Chip modules (all): Update mutex definition (works now for new 2.2 kernels) 
    2222  File sensors.conf.eg: Add mtp008 entries 
    2323  Library: Add mtp008 support 
  • lm-sensors/trunk/kernel/chips/adm1021.c

    r929 r933  
    3030#include <linux/init.h> 
    3131 
    32 #ifndef init_MUTEX 
     32#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     33    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3334#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3435#endif 
  • lm-sensors/trunk/kernel/chips/adm1025.c

    r818 r933  
    3939#include <linux/init.h> 
    4040 
    41 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     41#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     42    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    4243#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    4344#endif 
  • lm-sensors/trunk/kernel/chips/adm9240.c

    r929 r933  
    6464#include <linux/init.h> 
    6565 
    66 #ifndef init_MUTEX 
     66#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     67    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    6768#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    6869#endif 
  • lm-sensors/trunk/kernel/chips/bt869.c

    r707 r933  
    3131#include <linux/init.h> 
    3232 
    33 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     33#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     34    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3435#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3536#endif 
  • lm-sensors/trunk/kernel/chips/ddcmon.c

    r923 r933  
    3131#include <linux/init.h> 
    3232 
    33 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     33#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     34    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3435#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3536#endif 
  • lm-sensors/trunk/kernel/chips/eeprom.c

    r929 r933  
    3030#include <linux/init.h> 
    3131 
    32 #ifndef init_MUTEX 
     32#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     33    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3334#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3435#endif 
  • lm-sensors/trunk/kernel/chips/gl518sm.c

    r929 r933  
    3535#endif 
    3636 
    37 #ifndef init_MUTEX 
     37#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     38    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3839#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3940#endif 
  • lm-sensors/trunk/kernel/chips/gl520sm.c

    r707 r933  
    3030#include <linux/init.h> 
    3131 
    32 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     32#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     33    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3334#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3435#endif 
  • lm-sensors/trunk/kernel/chips/icspll.c

    r796 r933  
    4040 
    4141 
    42 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     42#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     43    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    4344#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    4445#endif 
  • lm-sensors/trunk/kernel/chips/lm75.c

    r929 r933  
    2929 
    3030 
    31 #ifndef init_MUTEX 
     31#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     32    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3233#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3334#endif 
  • lm-sensors/trunk/kernel/chips/lm78.c

    r929 r933  
    3434#include <linux/init.h> 
    3535 
    36 #ifndef init_MUTEX 
     36#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     37    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3738#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3839#endif 
  • lm-sensors/trunk/kernel/chips/lm80.c

    r929 r933  
    3535#include <linux/init.h> 
    3636 
    37 #ifndef init_MUTEX 
     37#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     38    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3839#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3940#endif 
  • lm-sensors/trunk/kernel/chips/lm87.c

    r921 r933  
    3838#include <linux/init.h> 
    3939 
    40 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     40#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     41    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    4142#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    4243#endif 
  • lm-sensors/trunk/kernel/chips/ltc1710.c

    r929 r933  
    5252 
    5353 
    54 #ifndef init_MUTEX 
     54#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     55    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    5556#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    5657#endif 
  • lm-sensors/trunk/kernel/chips/matorb.c

    r707 r933  
    3232#include <linux/init.h> 
    3333 
    34 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     34#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     35    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3536#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3637#endif 
  • lm-sensors/trunk/kernel/chips/maxilife.c

    r790 r933  
    6868 
    6969 
    70 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     70#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     71    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    7172#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    7273#endif 
  • lm-sensors/trunk/kernel/chips/mtp008.c

    r911 r933  
    3434#include <linux/init.h> 
    3535 
    36 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     36#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     37    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3738#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3839#endif 
  • lm-sensors/trunk/kernel/chips/pcf8574.c

    r922 r933  
    4949 
    5050 
    51 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     51#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     52    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    5253#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    5354#endif 
  • lm-sensors/trunk/kernel/chips/sis5595.c

    r929 r933  
    3838 
    3939 
    40 #ifndef init_MUTEX 
     40#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     41    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    4142#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    4243#endif 
  • lm-sensors/trunk/kernel/chips/thmc50.c

    r707 r933  
    3131#include <linux/init.h> 
    3232 
    33 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     33#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     34    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    3435#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    3536#endif 
  • lm-sensors/trunk/kernel/chips/via686a.c

    r914 r933  
    4545#endif 
    4646 
    47 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1)) 
     47#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     48    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    4849#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    4950#endif 
  • lm-sensors/trunk/kernel/chips/w83781d.c

    r929 r933  
    4848#include <linux/init.h> 
    4949 
    50 #ifndef init_MUTEX 
     50#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)) || \ 
     51    (LINUX_VERSION_CODE == KERNEL_VERSION(2,3,0)) 
    5152#define init_MUTEX(s) do { *(s) = MUTEX; } while(0) 
    5253#endif