| --- 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_CODE >= KERNEL_VERSION(3,7,0) |
| static const struct pci_error_handlers atl1e_err_handler = { |
| +#else |
| +static struct pci_error_handlers atl1e_err_handler = { |
| +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) */ |
| .error_detected = atl1e_io_error_detected, |
| .slot_reset = atl1e_io_slot_reset, |
| .resume = atl1e_io_resume, |