mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-01-19 12:16:39 +00:00
rtl8188eu: Fix build warning for kernels 2.6.39-
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
36e0fb5f24
commit
63fe7cda86
1 changed files with 6 additions and 0 deletions
|
@ -713,9 +713,15 @@ int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,39)
|
||||||
static const struct device_type wlan_type = {
|
static const struct device_type wlan_type = {
|
||||||
.name = "wlan",
|
.name = "wlan",
|
||||||
};
|
};
|
||||||
|
#else
|
||||||
|
static struct device_type wlan_type = {
|
||||||
|
.name = "wlan",
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
struct net_device *rtw_init_netdev(struct adapter *old_padapter)
|
struct net_device *rtw_init_netdev(struct adapter *old_padapter)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue