Show
Ignore:
Timestamp:
11/23/00 00:54:39 (14 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)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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