|
@@ -3984,10 +3984,7 @@ err_out_free_res:
|
|
|
iounmap(h->cfgtable);
|
|
|
if (h->vaddr)
|
|
|
iounmap(h->vaddr);
|
|
|
- /*
|
|
|
- * Deliberately omit pci_disable_device(): it does something nasty to
|
|
|
- * Smart Array controllers that pci_enable_device does not undo
|
|
|
- */
|
|
|
+ pci_disable_device(h->pdev);
|
|
|
pci_release_regions(h->pdev);
|
|
|
return err;
|
|
|
}
|
|
@@ -4526,10 +4523,7 @@ static void __devexit hpsa_remove_one(struct pci_dev *pdev)
|
|
|
kfree(h->cmd_pool_bits);
|
|
|
kfree(h->blockFetchTable);
|
|
|
kfree(h->hba_inquiry_data);
|
|
|
- /*
|
|
|
- * Deliberately omit pci_disable_device(): it does something nasty to
|
|
|
- * Smart Array controllers that pci_enable_device does not undo
|
|
|
- */
|
|
|
+ pci_disable_device(pdev);
|
|
|
pci_release_regions(pdev);
|
|
|
pci_set_drvdata(pdev, NULL);
|
|
|
kfree(h);
|