diff options
-rw-r--r-- | drivers/net/wireless/airo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 2d3a180dada0..57da70b07f1f 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -5597,8 +5597,10 @@ static int __devinit airo_pci_probe(struct pci_dev *pdev, | |||
5597 | dev = _init_airo_card(pdev->irq, pdev->resource[0].start, 0, pdev, &pdev->dev); | 5597 | dev = _init_airo_card(pdev->irq, pdev->resource[0].start, 0, pdev, &pdev->dev); |
5598 | else | 5598 | else |
5599 | dev = _init_airo_card(pdev->irq, pdev->resource[2].start, 0, pdev, &pdev->dev); | 5599 | dev = _init_airo_card(pdev->irq, pdev->resource[2].start, 0, pdev, &pdev->dev); |
5600 | if (!dev) | 5600 | if (!dev) { |
5601 | pci_disable_device(pdev); | ||
5601 | return -ENODEV; | 5602 | return -ENODEV; |
5603 | } | ||
5602 | 5604 | ||
5603 | pci_set_drvdata(pdev, dev); | 5605 | pci_set_drvdata(pdev, dev); |
5604 | return 0; | 5606 | return 0; |
@@ -5610,6 +5612,8 @@ static void __devexit airo_pci_remove(struct pci_dev *pdev) | |||
5610 | 5612 | ||
5611 | airo_print_info(dev->name, "Unregistering..."); | 5613 | airo_print_info(dev->name, "Unregistering..."); |
5612 | stop_airo_card(dev, 1); | 5614 | stop_airo_card(dev, 1); |
5615 | pci_disable_device(pdev); | ||
5616 | pci_set_drvdata(pdev, NULL); | ||
5613 | } | 5617 | } |
5614 | 5618 | ||
5615 | static int airo_pci_suspend(struct pci_dev *pdev, pm_message_t state) | 5619 | static int airo_pci_suspend(struct pci_dev *pdev, pm_message_t state) |