ARM: footbridge: fix build with PCI disabled
authorArnd Bergmann <arnd@arndb.de>
Sat, 15 Mar 2014 10:27:28 +0000 (11:27 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Mar 2014 17:26:09 +0000 (18:26 +0100)
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 <arnd@arndb.de>
Cc: Russell King <linux@arm.linux.org.uk>
arch/arm/mach-footbridge/Makefile

index 0b64dd430d6150317288302c94f3b11fa0f1762e..c3faa3bc84dd3ea49321d06ae997132dabd12c7b 100644 (file)
@@ -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