summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 37fa7b8e8..b6b4e82dc 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -1,5 +1,5 @@
/*
- * $Id: compat.h,v 1.36 2005/11/23 07:24:54 mkrufky Exp $
+ * $Id: compat.h,v 1.37 2005/12/04 01:12:43 rmcc Exp $
*/
#ifndef _COMPAT_H
@@ -262,6 +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)
+#endif
+
#endif
/*
* Local variables: