Commit 37da1f70 authored by Andrew Chew's avatar Andrew Chew Committed by Jeff Garzik

[libata] unmap MMIO region _after_ last possible usage

parent dc08190c
...@@ -3252,10 +3252,10 @@ void ata_pci_remove_one (struct pci_dev *pdev) ...@@ -3252,10 +3252,10 @@ void ata_pci_remove_one (struct pci_dev *pdev)
} }
free_irq(host_set->irq, host_set); free_irq(host_set->irq, host_set);
if (host_set->mmio_base)
iounmap(host_set->mmio_base);
if (host_set->ops->host_stop) if (host_set->ops->host_stop)
host_set->ops->host_stop(host_set); host_set->ops->host_stop(host_set);
if (host_set->mmio_base)
iounmap(host_set->mmio_base);
for (i = 0; i < host_set->n_ports; i++) { for (i = 0; i < host_set->n_ports; i++) {
ap = host_set->ports[i]; ap = host_set->ports[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment