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

+6
View File
@@ -27,12 +27,18 @@
#include <linux/module.h>
#include <linux/kernel.h>
#include "compat.h"
#include "i2c.h"
#ifdef I2C_SPINLOCK
#include <asm/spinlock.h>
#else
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,0,19)
#include <linux/sched.h>
#else
#include <asm/semaphore.h>
#endif
#endif
#include "version.h"
#include "i2c-isa.h"