Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104945
b: refs/heads/master
c: 129cf9a
h: refs/heads/master
i:
  104943: 53d6c24
v: v3
  • Loading branch information
Florian Fainelli authored and Jeff Garzik committed Jul 22, 2008
1 parent 9a82d91 commit 2e66f7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: f2ca60f2067958e45f949e74abd580715c6c4b33
refs/heads/master: 129cf9a7028fc50b226b8021bc0b76fb38efa81d
4 changes: 2 additions & 2 deletions trunk/drivers/net/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ static int r6040_close(struct net_device *dev)
del_timer_sync(&lp->timer);

spin_lock_irq(&lp->lock);
napi_disable(&lp->napi);
netif_stop_queue(dev);
r6040_down(dev);
spin_unlock_irq(&lp->lock);
Expand Down Expand Up @@ -1080,8 +1081,6 @@ static int __devinit r6040_init_one(struct pci_dev *pdev,
}
SET_NETDEV_DEV(dev, &pdev->dev);
lp = netdev_priv(dev);
lp->pdev = pdev;
lp->dev = dev;

if (pci_request_regions(pdev, DRV_NAME)) {
printk(KERN_ERR DRV_NAME ": Failed to request PCI regions\n");
Expand Down Expand Up @@ -1113,6 +1112,7 @@ static int __devinit r6040_init_one(struct pci_dev *pdev,

/* Link new device into r6040_root_dev */
lp->pdev = pdev;
lp->dev = dev;

/* Init RDC private data */
lp->mcr0 = 0x1002;
Expand Down

0 comments on commit 2e66f7d

Please sign in to comment.