summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-12-08 12:58:34 +0000
committerMichael Krufky <devnull@localhost>2005-12-08 12:58:34 +0000
commitd53d1fc828c43cbadb8eb5df628bba99fb1c2fee (patch)
treecc2f3ff6c6b1e0b8f0be64becbd4ab73f7861aa5
parent18cbeb5c0218e6ec2f9f64b3270bcd8c2b26df20 (diff)
downloadmediapointer-dvb-s2-d53d1fc828c43cbadb8eb5df628bba99fb1c2fee.tar.gz
mediapointer-dvb-s2-d53d1fc828c43cbadb8eb5df628bba99fb1c2fee.tar.bz2
fix compat.h inputdev changes
Removed linux version check, #include <linux/input.h> ...Should now work for everybody. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
-rw-r--r--v4l/compat.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index ca0f9f5c2..e248de834 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -1,5 +1,5 @@
/*
- * $Id: compat.h,v 1.39 2005/12/08 12:49:20 mkrufky Exp $
+ * $Id: compat.h,v 1.40 2005/12/08 12:58:34 mkrufky Exp $
*/
#ifndef _COMPAT_H
@@ -11,6 +11,7 @@
#include <linux/utsname.h>
#include <linux/sched.h>
#include <linux/device.h>
+#include <linux/input.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18)
# define minor(x) MINOR(x)
@@ -262,14 +263,12 @@ static inline unsigned long vmalloc_to_pfn(void * vmalloc_addr)
#endif
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)
#ifndef input_allocate_device
# define input_allocate_device() kzalloc(sizeof(struct input_dev),GFP_KERNEL);
#endif
#ifndef input_free_device
# define input_free_device(input_dev) kfree(input_dev)
#endif
-#endif
#endif
/*