diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2008-10-27 11:14:00 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:51:54 -0800 |
commit | 8a1396ef7ee4045bcbf0f9b9d8763e1b383ec690 (patch) | |
tree | 7207041634704dcb202f39e65baa307f5c019d1d /drivers/staging/wlan-ng/wlan_compat.h | |
parent | 68a193e4bb4e96fa58d11566b75bb9bcc34ea50b (diff) |
Staging: wlan-ng: Eliminate all backwards-compatibility for <2.6.13 kernels.
Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng/wlan_compat.h')
-rw-r--r-- | drivers/staging/wlan-ng/wlan_compat.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/drivers/staging/wlan-ng/wlan_compat.h b/drivers/staging/wlan-ng/wlan_compat.h index 610078da687..3127754f9fe 100644 --- a/drivers/staging/wlan-ng/wlan_compat.h +++ b/drivers/staging/wlan-ng/wlan_compat.h @@ -134,11 +134,7 @@ typedef int64_t INT64; #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) #endif -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,8)) -# include <linux/hardirq.h> -#else -# include <asm/hardirq.h> -#endif +#include <linux/hardirq.h> #define WLAN_LOG_ERROR(x,args...) printk(KERN_ERR "%s: " x , __func__ , ##args); @@ -186,10 +182,6 @@ typedef int64_t INT64; #define PT_REGS #endif -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7)) -# define del_singleshot_timer_sync(a) del_timer_sync(a) -#endif - #define CONFIG_NETLINK 1 #ifndef wait_event_interruptible_timeout @@ -251,25 +243,8 @@ typedef struct net_device netdevice_t; #define in_atomic() 0 #endif -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,13)) #define URB_ASYNC_UNLINK 0 -#endif - -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7)) -#define URB_ASYNC_UNLINK USB_ASYNC_UNLINK -#define usb_fill_bulk_urb FILL_BULK_URB -#define usb_kill_urb usb_unlink_urb -#else #define USB_QUEUE_BULK 0 -#endif - -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)) -typedef u32 pm_message_t; -#endif - -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9)) -#define eth_hdr(x) (x)->mac.ethernet -#endif #ifndef might_sleep #define might_sleep(a) do { } while (0) |