Fix warnings about including deprecated <linux/config.h>
authorIan Abbott <abbotti@mev.co.uk>
Mon, 5 Sep 2011 12:29:20 +0000 (13:29 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 5 Sep 2011 12:29:20 +0000 (13:29 +0100)
Change Comedi's <linux/config.h> compatibility header so it only
includes the real <linux/config.h> for kernel versions below 2.6.15.
Previously it was included for kernel versions below 2.6.19 (when it was
removed from the kernel sources) but wasn't needed for 2.6.15 onwards.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
include/linux/config.h

index 95cbcf64fcce99318af0f27261a6ab097a4b5340..08790704f7be6cbde9d00da726dd02ffa3705ee6 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <config.h>
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 15)
 #include_next <linux/config.h>
 #endif