summaryrefslogtreecommitdiff
path: root/patches/0042-pci_error_handlers/atl1e.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0042-pci_error_handlers/atl1e.patch')
-rw-r--r--patches/0042-pci_error_handlers/atl1e.patch14
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,