From 63fe7cda86c2830d66335026efde7472c10bc5c2 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Fri, 18 Apr 2014 01:21:08 -0500 Subject: [PATCH] rtl8188eu: Fix build warning for kernels 2.6.39- Signed-off-by: Larry Finger --- os_dep/os_intfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/os_dep/os_intfs.c b/os_dep/os_intfs.c index c0a3831..c3cd6ee 100644 --- a/os_dep/os_intfs.c +++ b/os_dep/os_intfs.c @@ -713,9 +713,15 @@ int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) return 0; } +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,39) static const struct device_type wlan_type = { .name = "wlan", }; +#else +static struct device_type wlan_type = { + .name = "wlan", +}; +#endif struct net_device *rtw_init_netdev(struct adapter *old_padapter) {