From: Arnd Bergmann Date: Sat, 15 Mar 2014 10:27:28 +0000 (+0100) Subject: ARM: footbridge: fix build with PCI disabled X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=570977a1fc5d4c1ade5107c03336b0845aed7005;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ARM: footbridge: fix build with PCI disabled The dc21285.c source file cannot be built when CONFIG_PCI is disabled, because it calls a number of PCI core interfaces. This changes the Makefile so we don't include this file in the build if CONFIG_PCI is disabled. No other code references anything defined inside of this file in this case. Signed-off-by: Arnd Bergmann Cc: Russell King --- diff --git a/arch/arm/mach-footbridge/Makefile b/arch/arm/mach-footbridge/Makefile index 0b64dd430d61..c3faa3bc84dd 100644 --- a/arch/arm/mach-footbridge/Makefile +++ b/arch/arm/mach-footbridge/Makefile @@ -4,11 +4,12 @@ # Object file lists. -obj-y := common.o dc21285.o dma.o isa-irq.o +obj-y := common.o dma.o isa-irq.o obj-m := obj-n := obj- := +pci-y += dc21285.o pci-$(CONFIG_ARCH_CATS) += cats-pci.o pci-$(CONFIG_ARCH_EBSA285_HOST) += ebsa285-pci.o pci-$(CONFIG_ARCH_NETWINDER) += netwinder-pci.o