Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300538
b: refs/heads/master
c: dfda357
h: refs/heads/master
v: v3
  • Loading branch information
Francois Romieu committed Apr 7, 2012
1 parent b6031b9 commit 9160618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ca0aa08eb70dd23c1bc5d154c3d8ba157b712e9
refs/heads/master: dfda3578867bbfa35c629b58b5886dd9f5da11ca
9 changes: 2 additions & 7 deletions trunk/drivers/net/ethernet/via/via-velocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -2488,8 +2488,8 @@ static int velocity_close(struct net_device *dev)

if (vptr->flags & VELOCITY_FLAGS_WOL_ENABLED)
velocity_get_ip(vptr);
if (dev->irq != 0)
free_irq(dev->irq, dev);

free_irq(vptr->pdev->irq, dev);

velocity_free_rings(vptr);

Expand Down Expand Up @@ -2755,8 +2755,6 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi
if (ret < 0)
goto err_free_dev;

dev->irq = pdev->irq;

ret = velocity_get_pci_info(vptr, pdev);
if (ret < 0) {
/* error message already printed */
Expand All @@ -2779,8 +2777,6 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi

mac_wol_reset(regs);

dev->base_addr = vptr->ioaddr;

for (i = 0; i < 6; i++)
dev->dev_addr[i] = readb(&regs->PAR[i]);

Expand All @@ -2806,7 +2802,6 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi

vptr->phy_id = MII_GET_PHY_ID(vptr->mac_regs);

dev->irq = pdev->irq;
dev->netdev_ops = &velocity_netdev_ops;
dev->ethtool_ops = &velocity_ethtool_ops;
netif_napi_add(dev, &vptr->napi, velocity_poll, VELOCITY_NAPI_WEIGHT);
Expand Down

0 comments on commit 9160618

Please sign in to comment.