diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/atl1/atl1_main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/atl1/atl1_main.c b/drivers/net/atl1/atl1_main.c index d28f88bbdd5f..78cf00ff3d38 100644 --- a/drivers/net/atl1/atl1_main.c +++ b/drivers/net/atl1/atl1_main.c | |||
@@ -2038,6 +2038,15 @@ static int atl1_close(struct net_device *netdev) | |||
2038 | return 0; | 2038 | return 0; |
2039 | } | 2039 | } |
2040 | 2040 | ||
2041 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||
2042 | static void atl1_poll_controller(struct net_device *netdev) | ||
2043 | { | ||
2044 | disable_irq(netdev->irq); | ||
2045 | atl1_intr(netdev->irq, netdev); | ||
2046 | enable_irq(netdev->irq); | ||
2047 | } | ||
2048 | #endif | ||
2049 | |||
2041 | /* | 2050 | /* |
2042 | * If TPD Buffer size equal to 0, PCIE DMAR_TO_INT | 2051 | * If TPD Buffer size equal to 0, PCIE DMAR_TO_INT |
2043 | * will assert. We do soft reset <0x1400=1> according | 2052 | * will assert. We do soft reset <0x1400=1> according |
@@ -2190,6 +2199,9 @@ static int __devinit atl1_probe(struct pci_dev *pdev, | |||
2190 | netdev->do_ioctl = &atl1_ioctl; | 2199 | netdev->do_ioctl = &atl1_ioctl; |
2191 | netdev->tx_timeout = &atl1_tx_timeout; | 2200 | netdev->tx_timeout = &atl1_tx_timeout; |
2192 | netdev->watchdog_timeo = 5 * HZ; | 2201 | netdev->watchdog_timeo = 5 * HZ; |
2202 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||
2203 | netdev->poll_controller = atl1_poll_controller; | ||
2204 | #endif | ||
2193 | netdev->vlan_rx_register = atl1_vlan_rx_register; | 2205 | netdev->vlan_rx_register = atl1_vlan_rx_register; |
2194 | netdev->vlan_rx_add_vid = atl1_vlan_rx_add_vid; | 2206 | netdev->vlan_rx_add_vid = atl1_vlan_rx_add_vid; |
2195 | netdev->vlan_rx_kill_vid = atl1_vlan_rx_kill_vid; | 2207 | netdev->vlan_rx_kill_vid = atl1_vlan_rx_kill_vid; |