Michal Simek | a6475c1 | 2010-01-18 15:27:10 +0100 | [diff] [blame] | 1 | /* |
| 2 | * ppc64 "iomap" interface implementation. |
| 3 | * |
| 4 | * (C) Copyright 2004 Linus Torvalds |
| 5 | */ |
| 6 | #include <linux/init.h> |
| 7 | #include <linux/pci.h> |
| 8 | #include <linux/mm.h> |
Paul Gortmaker | 66421a6 | 2011-09-22 11:22:55 -0400 | [diff] [blame] | 9 | #include <linux/export.h> |
Michal Simek | 6bd55f0 | 2012-12-27 10:40:38 +0100 | [diff] [blame] | 10 | #include <linux/io.h> |
Michal Simek | a6475c1 | 2010-01-18 15:27:10 +0100 | [diff] [blame] | 11 | #include <asm/pci-bridge.h> |
| 12 | |
Michal Simek | a6475c1 | 2010-01-18 15:27:10 +0100 | [diff] [blame] | 13 | void pci_iounmap(struct pci_dev *dev, void __iomem *addr) |
| 14 | { |
| 15 | if (isa_vaddr_is_ioport(addr)) |
| 16 | return; |
| 17 | if (pcibios_vaddr_is_ioport(addr)) |
| 18 | return; |
| 19 | iounmap(addr); |
| 20 | } |
| 21 | EXPORT_SYMBOL(pci_iounmap); |