diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-04-08 22:04:16 +0300 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-04-08 22:30:27 +0300 |
commit | 6837f5a4e550ad9b935465717aa196a792d89e83 (patch) | |
tree | 6e4c3db73a43a099597e4adef896a0f0a81dece1 /drivers | |
parent | f2ce99148805611308bb7cba42139b0e4cd6c8ef (diff) |
staging: rtl8188eu: make able to build for < 3.14
Fix the driver to be able to build with kernel versions < 3.14.
Tested with 3.10.40.
Related-to: ELB-2388
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8188eu/Kconfig | 1 | ||||
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/os_intfs.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/Kconfig b/drivers/staging/rtl8188eu/Kconfig index f2939fc..a5e6518 100644 --- a/drivers/staging/rtl8188eu/Kconfig +++ b/drivers/staging/rtl8188eu/Kconfig @@ -1,6 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 config R8188EU - depends on !KERNEL_3_14 tristate "Realtek RTL8188EU Wireless LAN NIC driver" depends on m depends on WLAN && USB && CFG80211 diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/os_dep/os_intfs.c index 43d1f2e..f1950d8 100644 --- a/drivers/staging/rtl8188eu/os_dep/os_intfs.c +++ b/drivers/staging/rtl8188eu/os_dep/os_intfs.c @@ -252,10 +252,12 @@ static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb, static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb, struct net_device *sb_dev, select_queue_fallback_t fallback) -#else +#elif LINUX_VERSION_IS_GEQ(3,14,0) static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb, void *accel_priv, select_queue_fallback_t fallback) +#else +static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb) #endif { struct adapter *padapter = rtw_netdev_priv(dev); |