aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/via
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2012-03-09 09:24:37 -0500
committerFrancois Romieu <romieu@fr.zoreil.com>2012-04-07 05:45:24 -0400
commitdfda3578867bbfa35c629b58b5886dd9f5da11ca (patch)
treeff9b79fd4de276023289274547369be000d2cc41 /drivers/net/ethernet/via
parent0ca0aa08eb70dd23c1bc5d154c3d8ba157b712e9 (diff)
via-velocity: stop using net_device.{base_addr, irq}.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Cc: David Lv <DavidLv@viatech.com.cn>
Diffstat (limited to 'drivers/net/ethernet/via')
-rw-r--r--drivers/net/ethernet/via/via-velocity.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c
index 8a5d7c100a5e..ea3e0a21ba74 100644
--- a/drivers/net/ethernet/via/via-velocity.c
+++ b/drivers/net/ethernet/via/via-velocity.c
@@ -2488,8 +2488,8 @@ static int velocity_close(struct net_device *dev)
2488 2488
2489 if (vptr->flags & VELOCITY_FLAGS_WOL_ENABLED) 2489 if (vptr->flags & VELOCITY_FLAGS_WOL_ENABLED)
2490 velocity_get_ip(vptr); 2490 velocity_get_ip(vptr);
2491 if (dev->irq != 0) 2491
2492 free_irq(dev->irq, dev); 2492 free_irq(vptr->pdev->irq, dev);
2493 2493
2494 velocity_free_rings(vptr); 2494 velocity_free_rings(vptr);
2495 2495
@@ -2755,8 +2755,6 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi
2755 if (ret < 0) 2755 if (ret < 0)
2756 goto err_free_dev; 2756 goto err_free_dev;
2757 2757
2758 dev->irq = pdev->irq;
2759
2760 ret = velocity_get_pci_info(vptr, pdev); 2758 ret = velocity_get_pci_info(vptr, pdev);
2761 if (ret < 0) { 2759 if (ret < 0) {
2762 /* error message already printed */ 2760 /* error message already printed */
@@ -2779,8 +2777,6 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi
2779 2777
2780 mac_wol_reset(regs); 2778 mac_wol_reset(regs);
2781 2779
2782 dev->base_addr = vptr->ioaddr;
2783
2784 for (i = 0; i < 6; i++) 2780 for (i = 0; i < 6; i++)
2785 dev->dev_addr[i] = readb(&regs->PAR[i]); 2781 dev->dev_addr[i] = readb(&regs->PAR[i]);
2786 2782
@@ -2806,7 +2802,6 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi
2806 2802
2807 vptr->phy_id = MII_GET_PHY_ID(vptr->mac_regs); 2803 vptr->phy_id = MII_GET_PHY_ID(vptr->mac_regs);
2808 2804
2809 dev->irq = pdev->irq;
2810 dev->netdev_ops = &velocity_netdev_ops; 2805 dev->netdev_ops = &velocity_netdev_ops;
2811 dev->ethtool_ops = &velocity_ethtool_ops; 2806 dev->ethtool_ops = &velocity_ethtool_ops;
2812 netif_napi_add(dev, &vptr->napi, velocity_poll, VELOCITY_NAPI_WEIGHT); 2807 netif_napi_add(dev, &vptr->napi, velocity_poll, VELOCITY_NAPI_WEIGHT);