pci_iounmap(): Fix MMIO mapping leak
[linux-2.6-microblaze.git] / lib / pci_iomap.c
index ce39ce9..2829ddb 100644 (file)
@@ -170,8 +170,8 @@ void pci_iounmap(struct pci_dev *dev, void __iomem *p)
 
        if (addr >= start && addr < start + IO_SPACE_LIMIT)
                return;
-       iounmap(p);
 #endif
+       iounmap(p);
 }
 EXPORT_SYMBOL(pci_iounmap);