acx-mac80211: fix build on kernel 4.9
[openwrt/staging/wigyori.git] / package / kernel / acx-mac80211 / patches / 100-compat.patch
1 diff --git a/pci.c b/pci.c
2 index ae07f5a..72d542f 100644
3 --- a/pci.c
4 +++ b/pci.c
5 @@ -1495,7 +1495,11 @@ static struct acxpci_device_info acxpci_info_tbl[] __devinitdata = {
6 #endif
7
8 #ifdef CONFIG_PCI
9 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
10 static DEFINE_PCI_DEVICE_TABLE(acxpci_id_tbl) = {
11 +#else
12 +static const struct pci_device_id acxpci_id_tbl[] = {
13 +#endif
14 { PCI_VDEVICE(TI, PCI_DEVICE_ID_TI_TNETW1100A),
15 .driver_data = CHIPTYPE_ACX100,
16 },