diff options
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 014855e5a43a..d73cb3672d6a 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -5621,8 +5621,12 @@ void ata_pci_remove_one (struct pci_dev *pdev) | |||
5621 | { | 5621 | { |
5622 | struct device *dev = pci_dev_to_dev(pdev); | 5622 | struct device *dev = pci_dev_to_dev(pdev); |
5623 | struct ata_host_set *host_set = dev_get_drvdata(dev); | 5623 | struct ata_host_set *host_set = dev_get_drvdata(dev); |
5624 | struct ata_host_set *host_set2 = host_set->next; | ||
5624 | 5625 | ||
5625 | ata_host_set_remove(host_set); | 5626 | ata_host_set_remove(host_set); |
5627 | if (host_set2) | ||
5628 | ata_host_set_remove(host_set2); | ||
5629 | |||
5626 | pci_release_regions(pdev); | 5630 | pci_release_regions(pdev); |
5627 | pci_disable_device(pdev); | 5631 | pci_disable_device(pdev); |
5628 | dev_set_drvdata(dev, NULL); | 5632 | dev_set_drvdata(dev, NULL); |