diff options
author | Francois Romieu <romieu@fr.zoreil.com> | 2012-03-09 09:28:18 -0500 |
---|---|---|
committer | Francois Romieu <romieu@fr.zoreil.com> | 2012-04-07 05:45:24 -0400 |
commit | 05d334eca9994680a6cb8fba3f19955356ccf72a (patch) | |
tree | be85fb46c3702f02454e02e2888d0b74f71262d0 | |
parent | 93f7fab433606a0ee6153788213de2a822736322 (diff) |
via-rhine: stop using net_device.{base_addr, irq}.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: David Lv <DavidLv@viatech.com.cn>
-rw-r--r-- | drivers/net/ethernet/via/via-rhine.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index 39b8cf3dafcd..47b411fe3ecb 100644 --- a/drivers/net/ethernet/via/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c | |||
@@ -687,9 +687,12 @@ static void __devinit rhine_reload_eeprom(long pioaddr, struct net_device *dev) | |||
687 | #ifdef CONFIG_NET_POLL_CONTROLLER | 687 | #ifdef CONFIG_NET_POLL_CONTROLLER |
688 | static void rhine_poll(struct net_device *dev) | 688 | static void rhine_poll(struct net_device *dev) |
689 | { | 689 | { |
690 | disable_irq(dev->irq); | 690 | struct rhine_private *rp = netdev_priv(dev); |
691 | rhine_interrupt(dev->irq, (void *)dev); | 691 | const int irq = rp->pdev->irq; |
692 | enable_irq(dev->irq); | 692 | |
693 | disable_irq(irq); | ||
694 | rhine_interrupt(irq, dev); | ||
695 | enable_irq(irq); | ||
693 | } | 696 | } |
694 | #endif | 697 | #endif |
695 | 698 | ||
@@ -970,7 +973,6 @@ static int __devinit rhine_init_one(struct pci_dev *pdev, | |||
970 | } | 973 | } |
971 | #endif /* USE_MMIO */ | 974 | #endif /* USE_MMIO */ |
972 | 975 | ||
973 | dev->base_addr = (unsigned long)ioaddr; | ||
974 | rp->base = ioaddr; | 976 | rp->base = ioaddr; |
975 | 977 | ||
976 | /* Get chip registers into a sane state */ | 978 | /* Get chip registers into a sane state */ |
@@ -993,8 +995,6 @@ static int __devinit rhine_init_one(struct pci_dev *pdev, | |||
993 | if (!phy_id) | 995 | if (!phy_id) |
994 | phy_id = ioread8(ioaddr + 0x6C); | 996 | phy_id = ioread8(ioaddr + 0x6C); |
995 | 997 | ||
996 | dev->irq = pdev->irq; | ||
997 | |||
998 | spin_lock_init(&rp->lock); | 998 | spin_lock_init(&rp->lock); |
999 | mutex_init(&rp->task_lock); | 999 | mutex_init(&rp->task_lock); |
1000 | INIT_WORK(&rp->reset_task, rhine_reset_task); | 1000 | INIT_WORK(&rp->reset_task, rhine_reset_task); |