diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2013-07-04 09:38:29 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-09-03 15:27:39 +0200 |
commit | 8510376e59adffb4fb890d936a59d6f2e42b86b3 (patch) | |
tree | 3d4bd186e1188266ae78f7cc625e67d86ec10484 /arch | |
parent | 05f226391d800b0b7696125eb9a13273ea9018f8 (diff) | |
download | blackbird-op-linux-8510376e59adffb4fb890d936a59d6f2e42b86b3.tar.gz blackbird-op-linux-8510376e59adffb4fb890d936a59d6f2e42b86b3.zip |
MIPS: Loongson: Hide the pci code behind CONFIG_PCI
The pci.c code depends on symbols which are only visible
if CONFIG_PCI is selected.
Also fixes the following problem on loongson allnoconfig:
arch/mips/built-in.o: In function `pcibios_init':
pci.c:(.init.text+0x528):
undefined reference to `register_pci_controller'
arch/mips/built-in.o:(.data+0xc):
undefined reference to `loongson_pci_ops'
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5584/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/loongson/common/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/loongson/common/Makefile b/arch/mips/loongson/common/Makefile index 4c57b3e5743f..9e4484ccbb03 100644 --- a/arch/mips/loongson/common/Makefile +++ b/arch/mips/loongson/common/Makefile @@ -3,8 +3,9 @@ # obj-y += setup.o init.o cmdline.o env.o time.o reset.o irq.o \ - pci.o bonito-irq.o mem.o machtype.o platform.o + bonito-irq.o mem.o machtype.o platform.o obj-$(CONFIG_GPIOLIB) += gpio.o +obj-$(CONFIG_PCI) += pci.o # # Serial port support |