Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60468
b: refs/heads/master
c: 777ec5e
h: refs/heads/master
v: v3
  • Loading branch information
Michal Schmidt authored and John W. Linville committed Jul 10, 2007
1 parent 28faefe commit b993467
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: a62056f0b0cfdc175afd99fef80a68f01cdf0f4b
refs/heads/master: 777ec5e9cec521af617fc52a1c1ae24f68f4a43b
6 changes: 5 additions & 1 deletion trunk/drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -5597,8 +5597,10 @@ static int __devinit airo_pci_probe(struct pci_dev *pdev,
dev = _init_airo_card(pdev->irq, pdev->resource[0].start, 0, pdev, &pdev->dev);
else
dev = _init_airo_card(pdev->irq, pdev->resource[2].start, 0, pdev, &pdev->dev);
if (!dev)
if (!dev) {
pci_disable_device(pdev);
return -ENODEV;
}

pci_set_drvdata(pdev, dev);
return 0;
Expand All @@ -5610,6 +5612,8 @@ static void __devexit airo_pci_remove(struct pci_dev *pdev)

airo_print_info(dev->name, "Unregistering...");
stop_airo_card(dev, 1);
pci_disable_device(pdev);
pci_set_drvdata(pdev, NULL);
}

static int airo_pci_suspend(struct pci_dev *pdev, pm_message_t state)
Expand Down

0 comments on commit b993467

Please sign in to comment.