From: Joerg Roedel Date: Wed, 25 Sep 2013 10:11:33 +0000 (+0200) Subject: ARM: mach-integrator: Add stub for pci_v3_early_init() for !CONFIG_PCI X-Git-Tag: v3.12-rc4~25^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4dc3231f818baf7415c67ee06c51ace0973ae736;p=profile%2Fivi%2Fkernel-x86-ivi.git ARM: mach-integrator: Add stub for pci_v3_early_init() for !CONFIG_PCI This fixes a compile error where CONFIG_PCI is disabled: LD init/built-in.o arch/arm/mach-integrator/built-in.o: In function `ap_map_io': integrator_cp.c:(.init.text+0x570): undefined reference to `pci_v3_early_init' make[1]: *** [vmlinux] Error 1 make: *** [sub-make] Error 2 Cc: stable@vger.kernel.org Signed-off-by: Joerg Roedel Reviewed-by: Linus Walleij Signed-off-by: Olof Johansson --- diff --git a/arch/arm/mach-integrator/pci_v3.h b/arch/arm/mach-integrator/pci_v3.h index 755fd29..06a9e2e 100644 --- a/arch/arm/mach-integrator/pci_v3.h +++ b/arch/arm/mach-integrator/pci_v3.h @@ -1,2 +1,9 @@ /* Simple oneliner include to the PCIv3 early init */ +#ifdef CONFIG_PCI extern int pci_v3_early_init(void); +#else +static inline int pci_v3_early_init(void) +{ + return 0; +} +#endif