diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2019-02-21 10:23:08 +0100 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2019-02-21 10:23:44 +0100 |
commit | 0bdb080c70495ea4efbed7661b4fe6100bd5adde (patch) | |
tree | 9b0e0278c74c56b724540c9c12621f2fed70a6ff /patches/0042-pci_error_handlers/atl1e.patch | |
parent | e5561ba59729bf97f11bc11bb61fd4ef5c08c3b9 (diff) |
Revert "backports: Remove unused parts"
This reverts commit ab3fd3b9a801a9faa2619e2e65207e736f859a6d.
Diffstat (limited to 'patches/0042-pci_error_handlers/atl1e.patch')
-rw-r--r-- | patches/0042-pci_error_handlers/atl1e.patch | 14 |
1 files changed, 14 insertions, 0 deletions
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, |