diff options
author | Francois Romieu <romieu@fr.zoreil.com> | 2012-03-09 13:37:55 -0500 |
---|---|---|
committer | Francois Romieu <romieu@fr.zoreil.com> | 2012-04-07 05:45:24 -0400 |
commit | 32e819e46e028ec5901048baee66775d71c4ec51 (patch) | |
tree | fcb21721c96e55e0b04fc66099225f1a9c936ef6 /drivers/net/ethernet/neterion/vxge | |
parent | c514f285c37fc705e59956ae0b9fc79d28905d3b (diff) |
vxge: stop using net_device.{base_addr, irq}.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/net/ethernet/neterion/vxge')
-rw-r--r-- | drivers/net/ethernet/neterion/vxge/vxge-main.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c index 95fb61156e11..51387c31914b 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-main.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c | |||
@@ -1882,25 +1882,24 @@ static int vxge_poll_inta(struct napi_struct *napi, int budget) | |||
1882 | */ | 1882 | */ |
1883 | static void vxge_netpoll(struct net_device *dev) | 1883 | static void vxge_netpoll(struct net_device *dev) |
1884 | { | 1884 | { |
1885 | struct __vxge_hw_device *hldev; | 1885 | struct vxgedev *vdev = netdev_priv(dev); |
1886 | struct vxgedev *vdev; | 1886 | struct pci_dev *pdev = vdev->pdev; |
1887 | 1887 | struct __vxge_hw_device *hldev = pci_get_drvdata(pdev); | |
1888 | vdev = netdev_priv(dev); | 1888 | const int irq = pdev->irq; |
1889 | hldev = pci_get_drvdata(vdev->pdev); | ||
1890 | 1889 | ||
1891 | vxge_debug_entryexit(VXGE_TRACE, "%s:%d", __func__, __LINE__); | 1890 | vxge_debug_entryexit(VXGE_TRACE, "%s:%d", __func__, __LINE__); |
1892 | 1891 | ||
1893 | if (pci_channel_offline(vdev->pdev)) | 1892 | if (pci_channel_offline(pdev)) |
1894 | return; | 1893 | return; |
1895 | 1894 | ||
1896 | disable_irq(dev->irq); | 1895 | disable_irq(irq); |
1897 | vxge_hw_device_clear_tx_rx(hldev); | 1896 | vxge_hw_device_clear_tx_rx(hldev); |
1898 | 1897 | ||
1899 | vxge_hw_device_clear_tx_rx(hldev); | 1898 | vxge_hw_device_clear_tx_rx(hldev); |
1900 | VXGE_COMPLETE_ALL_RX(vdev); | 1899 | VXGE_COMPLETE_ALL_RX(vdev); |
1901 | VXGE_COMPLETE_ALL_TX(vdev); | 1900 | VXGE_COMPLETE_ALL_TX(vdev); |
1902 | 1901 | ||
1903 | enable_irq(dev->irq); | 1902 | enable_irq(irq); |
1904 | 1903 | ||
1905 | vxge_debug_entryexit(VXGE_TRACE, | 1904 | vxge_debug_entryexit(VXGE_TRACE, |
1906 | "%s:%d Exiting...", __func__, __LINE__); | 1905 | "%s:%d Exiting...", __func__, __LINE__); |
@@ -3424,9 +3423,6 @@ static int __devinit vxge_device_register(struct __vxge_hw_device *hldev, | |||
3424 | ndev->features |= ndev->hw_features | | 3423 | ndev->features |= ndev->hw_features | |
3425 | NETIF_F_HW_VLAN_RX | NETIF_F_HW_VLAN_FILTER; | 3424 | NETIF_F_HW_VLAN_RX | NETIF_F_HW_VLAN_FILTER; |
3426 | 3425 | ||
3427 | /* Driver entry points */ | ||
3428 | ndev->irq = vdev->pdev->irq; | ||
3429 | ndev->base_addr = (unsigned long) hldev->bar0; | ||
3430 | 3426 | ||
3431 | ndev->netdev_ops = &vxge_netdev_ops; | 3427 | ndev->netdev_ops = &vxge_netdev_ops; |
3432 | 3428 | ||