blob: 94149f5e6ebe2a152d686757fc19f85690b4410b [file] [log] [blame]
Michal Simeka6475c12010-01-18 15:27:10 +01001/*
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 Gortmaker66421a62011-09-22 11:22:55 -04009#include <linux/export.h>
Michal Simek6bd55f02012-12-27 10:40:38 +010010#include <linux/io.h>
Michal Simeka6475c12010-01-18 15:27:10 +010011#include <asm/pci-bridge.h>
12
Michal Simeka6475c12010-01-18 15:27:10 +010013void 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}
21EXPORT_SYMBOL(pci_iounmap);