From 0bdb080c70495ea4efbed7661b4fe6100bd5adde Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Thu, 21 Feb 2019 10:23:08 +0100 Subject: Revert "backports: Remove unused parts" This reverts commit ab3fd3b9a801a9faa2619e2e65207e736f859a6d. --- patches/0042-pci_error_handlers/atl1e.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/0042-pci_error_handlers/atl1e.patch (limited to 'patches/0042-pci_error_handlers/atl1e.patch') diff --git a/patches/0042-pci_error_handlers/atl1e.patch b/patches/0042-pci_error_handlers/atl1e.patch new file mode 100644 index 00000000..2bfc1d5e --- /dev/null +++ b/patches/0042-pci_error_handlers/atl1e.patch @@ -0,0 +1,14 @@ +--- a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c ++++ b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c +@@ -2555,7 +2555,11 @@ static void atl1e_io_resume(struct pci_d + netif_device_attach(netdev); + } + ++#if LINUX_VERSION_IS_GEQ(3,7,0) + static const struct pci_error_handlers atl1e_err_handler = { ++#else ++static struct pci_error_handlers atl1e_err_handler = { ++#endif /* LINUX_VERSION_IS_GEQ(3,7,0) */ + .error_detected = atl1e_io_error_detected, + .slot_reset = atl1e_io_slot_reset, + .resume = atl1e_io_resume, -- cgit v1.2.3