Several small patches to make everything compile against all 2.0.x

kernels, even early ones.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@477 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-06-09 17:26:32 +00:00
1 parent d42004ee6c
commit 29a33cac35
7 files changed
+34 -1

No files matched your search

+7 -1
View File
@@ -94,8 +94,14 @@
#endif
/* For old 2.0 kernels */
#ifndef PCI_DEVICE_ID_VIA_82C586_3
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,0,34))
#define PCI_DEVICE_ID_VIA_82C586_3 0x3040
#define PCI_DEVICE_ID_AL_M7101 0x7101
#endif
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,0,31))
#define PCI_DEVICE_ID_INTEL_82371AB_3 0x7113
#define PCI_VENDOR_ID_APPLE 0x106b
#define PCI_DEVICE_ID_APPLE_HYDRA 0x000e
#endif
#endif /* SENSORS_COMPAT_H */
+4
View File
@@ -39,8 +39,12 @@
#ifdef I2C_SPINLOCK
#include <asm/spinlock.h>
#else
#if LINUX_VERSION_CODE < 0x020019
#include <linux/sched.h>
#else
#include <asm/semaphore.h>
#endif
#endif
#ifdef LM_SENSORS /* TBD */
#include "i2c.h" /* TBD */
+4
View File
@@ -58,8 +58,12 @@ union smbus_data {
#ifdef I2C_SPINLOCK
#include <asm/spinlock.h>
#else
#if LINUX_VERSION_CODE < 0x020019
#include <linux/sched.h>
#else
#include <asm/semaphore.h>
#endif
#endif
#ifdef LM_SENSORS /* TBD */
#include "i2c.h" /* TBD */