aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorproski <proski>2006-12-18 21:28:34 +0000
committerproski <proski>2006-12-18 21:28:34 +0000
commit8a53ec0c7cc87121be0c98a9967dd1d0e7660dfd (patch)
tree15694d4b4d530bc1efb8df782a05e21081d2387c
parent10f4888bc2330d1dcf2be81d3e29853de8cfb209 (diff)
Use a simpler approach to linux/config.h inclusion
It should work just as well. It's better to avoid reliance on version numbers.
-rw-r--r--at76_usbdfu.c7
-rw-r--r--at76c503.c5
2 files changed, 3 insertions, 9 deletions
diff --git a/at76_usbdfu.c b/at76_usbdfu.c
index 380f1b1..c0596fb 100644
--- a/at76_usbdfu.c
+++ b/at76_usbdfu.c
@@ -24,13 +24,10 @@
* - Firmware upload (device-to-host) support
*/
-#include <linux/version.h>
-
-# if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
+#ifndef AUTOCONF_INCLUDED
#include <linux/config.h>
-#else
-# include <linux/autoconf.h>
#endif
+
#include <linux/slab.h>
#include <linux/usb.h>
#include "at76c503.h"
diff --git a/at76c503.c b/at76c503.c
index 2ea705a..3172a60 100644
--- a/at76c503.c
+++ b/at76c503.c
@@ -17,12 +17,9 @@
*
* Some iw_handler code was taken from airo.c, (C) 1999 Benjamin Reed
*/
-#include <linux/version.h>
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
+#ifndef AUTOCONF_INCLUDED
#include <linux/config.h>
-#else
-# include <linux/autoconf.h>
#endif
#include <linux/init.h>