diff options
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index b6c96a8e0337..b78919a318e2 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -1707,6 +1707,7 @@ qla2x00_remove_one(struct pci_dev *pdev) | |||
1707 | 1707 | ||
1708 | scsi_host_put(ha->host); | 1708 | scsi_host_put(ha->host); |
1709 | 1709 | ||
1710 | pci_disable_device(pdev); | ||
1710 | pci_set_drvdata(pdev, NULL); | 1711 | pci_set_drvdata(pdev, NULL); |
1711 | } | 1712 | } |
1712 | 1713 | ||
@@ -1749,8 +1750,6 @@ qla2x00_free_device(scsi_qla_host_t *ha) | |||
1749 | if (ha->iobase) | 1750 | if (ha->iobase) |
1750 | iounmap(ha->iobase); | 1751 | iounmap(ha->iobase); |
1751 | pci_release_regions(ha->pdev); | 1752 | pci_release_regions(ha->pdev); |
1752 | |||
1753 | pci_disable_device(ha->pdev); | ||
1754 | } | 1753 | } |
1755 | 1754 | ||
1756 | static inline void | 1755 | static inline void |