diff options
author | proski <proski> | 2006-12-18 21:28:34 +0000 |
---|---|---|
committer | proski <proski> | 2006-12-18 21:28:34 +0000 |
commit | 8a53ec0c7cc87121be0c98a9967dd1d0e7660dfd (patch) | |
tree | 15694d4b4d530bc1efb8df782a05e21081d2387c | |
parent | 10f4888bc2330d1dcf2be81d3e29853de8cfb209 (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.c | 7 | ||||
-rw-r--r-- | at76c503.c | 5 |
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" @@ -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> |