summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--v4l/ChangeLog7
-rw-r--r--v4l/compat.h10
2 files changed, 13 insertions, 4 deletions
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index d0a9264d3..807d7ca01 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,10 @@
+2005-12-08 12:37 mkrufky
+
+ * v4l/compat.h:
+ - fixed backwards compatability for non-vanilla 2.6.14 kernels.
+
+ Signed-off-by: Michael Krufky <mkrufky@m1k.net>
+
2005-12-08 12:31 mchehab
* linux/drivers/media/video/btcx-risc.c:
diff --git a/v4l/compat.h b/v4l/compat.h
index b6b4e82dc..b8204f7dc 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -1,5 +1,5 @@
/*
- * $Id: compat.h,v 1.37 2005/12/04 01:12:43 rmcc Exp $
+ * $Id: compat.h,v 1.38 2005/12/08 12:38:00 mkrufky Exp $
*/
#ifndef _COMPAT_H
@@ -262,9 +262,11 @@ static inline unsigned long vmalloc_to_pfn(void * vmalloc_addr)
#endif
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)
-# define input_allocate_device() kzalloc(sizeof(struct input_dev),GFP_KERNEL);
-# define input_free_device(input_dev) kfree(input_dev)
+#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