Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132146
b: refs/heads/master
c: 8778694
h: refs/heads/master
v: v3
  • Loading branch information
Meelis Roos authored and David S. Miller committed Mar 5, 2009
1 parent f1a9bd2 commit badbeaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: a883bf564ea555447a76682bb2d8d4bc92e23e0e
refs/heads/master: 87786945fe4b0e60e8f1db62d5ee8a3cec539a67
18 changes: 9 additions & 9 deletions trunk/drivers/net/tokenring/tmspci.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@ static int __devinit tms_pci_attach(struct pci_dev *pdev, const struct pci_devic
goto err_out_trdev;
}

ret = request_irq(pdev->irq, tms380tr_interrupt, IRQF_SHARED,
dev->name, dev);
if (ret)
goto err_out_region;

dev->base_addr = pci_ioaddr;
dev->irq = pci_irq_line;
dev->dma = 0;
Expand All @@ -142,7 +137,7 @@ static int __devinit tms_pci_attach(struct pci_dev *pdev, const struct pci_devic
ret = tmsdev_init(dev, &pdev->dev);
if (ret) {
printk("%s: unable to get memory for dev->priv.\n", dev->name);
goto err_out_irq;
goto err_out_region;
}

tp = netdev_priv(dev);
Expand All @@ -157,22 +152,27 @@ static int __devinit tms_pci_attach(struct pci_dev *pdev, const struct pci_devic

tp->tmspriv = cardinfo;

ret = request_irq(pdev->irq, tms380tr_interrupt, IRQF_SHARED,
dev->name, dev);
if (ret)
goto err_out_tmsdev;

dev->open = tms380tr_open;
dev->stop = tms380tr_close;
pci_set_drvdata(pdev, dev);
SET_NETDEV_DEV(dev, &pdev->dev);

ret = register_netdev(dev);
if (ret)
goto err_out_tmsdev;
goto err_out_irq;

return 0;

err_out_irq:
free_irq(pdev->irq, dev);
err_out_tmsdev:
pci_set_drvdata(pdev, NULL);
tmsdev_term(dev);
err_out_irq:
free_irq(pdev->irq, dev);
err_out_region:
release_region(pci_ioaddr, TMS_PCI_IO_EXTENT);
err_out_trdev:
Expand Down

0 comments on commit badbeaa

Please sign in to comment.