From: Benjamin Herrenschmidt Date: Wed, 10 Aug 2011 15:15:44 +0000 (+1000) Subject: powerpc: Really fix build without CONFIG_PCI X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a85fe3fce84335f83be17a7659bfbb3a71dc2fc4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git powerpc: Really fix build without CONFIG_PCI Brown paper bag day, previous commit wouldn't work very well with modules enabled. Move the exports into the ifdef. Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/iomap.c b/arch/powerpc/kernel/iomap.c index faca64accac1..b25f6325fc70 100644 --- a/arch/powerpc/kernel/iomap.c +++ b/arch/powerpc/kernel/iomap.c @@ -144,7 +144,7 @@ void pci_iounmap(struct pci_dev *dev, void __iomem *addr) return; iounmap(addr); } -#endif /* CONFIG_PCI */ EXPORT_SYMBOL(pci_iomap); EXPORT_SYMBOL(pci_iounmap); +#endif /* CONFIG_PCI */