aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-08-05 02:01:20 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-08-05 02:01:20 -0400
commit81210c2062cf98bf625bcd487334c89b0fce5a82 (patch)
treee4bbfca5cc5b9416f6d96ee0f389d0a1033e63be /arch/powerpc
parent883a805d617baca1c01172dc1d35e37829ffed0c (diff)
powerpc: Fix build without CONFIG_PCI
Commit fea80311a939a746533a6d7e7c3183729d6a3faf "iomap: make IOPORT/PCI mapping functions conditional" Broke powerpc build without CONFIG_PCI as we would still define pci_iomap(), which overlaps with the new empty inline in the headers. Make our implementation conditional on CONFIG_PCI Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/iomap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/iomap.c b/arch/powerpc/kernel/iomap.c
index 1577434f4088..faca64accac1 100644
--- a/arch/powerpc/kernel/iomap.c
+++ b/arch/powerpc/kernel/iomap.c
@@ -117,6 +117,7 @@ void ioport_unmap(void __iomem *addr)
117EXPORT_SYMBOL(ioport_map); 117EXPORT_SYMBOL(ioport_map);
118EXPORT_SYMBOL(ioport_unmap); 118EXPORT_SYMBOL(ioport_unmap);
119 119
120#ifdef CONFIG_PCI
120void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) 121void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max)
121{ 122{
122 resource_size_t start = pci_resource_start(dev, bar); 123 resource_size_t start = pci_resource_start(dev, bar);
@@ -143,6 +144,7 @@ void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
143 return; 144 return;
144 iounmap(addr); 145 iounmap(addr);
145} 146}
147#endif /* CONFIG_PCI */
146 148
147EXPORT_SYMBOL(pci_iomap); 149EXPORT_SYMBOL(pci_iomap);
148EXPORT_SYMBOL(pci_iounmap); 150EXPORT_SYMBOL(pci_iounmap);