100-compat.patch 464 B

12345678910111213141516
  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. #ifdef CONFIG_PCI
  8. +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
  9. static DEFINE_PCI_DEVICE_TABLE(acxpci_id_tbl) = {
  10. +#else
  11. +static const struct pci_device_id acxpci_id_tbl[] = {
  12. +#endif
  13. { PCI_VDEVICE(TI, PCI_DEVICE_ID_TI_TNETW1100A),
  14. .driver_data = CHIPTYPE_ACX100,
  15. },