diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-06-13 08:05:03 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-21 12:07:00 -0400 |
commit | 73ec78b06ecadb2ce67aae2509e8683ad8b92d14 (patch) | |
tree | 45d5c047a9b748141ecc65d0f25bba367b0e96b8 | |
parent | 8ea2b8b605d0053fc87abde56ff42b19520322f0 (diff) |
MIPS: IP27: Fix build errors with CONFIG_PCI disabled.
LD init/built-in.o
arch/mips/built-in.o: In function `xtalk_probe_node':
(.cpuinit.text+0x67c): undefined reference to `bridge_probe'
arch/mips/built-in.o: In function `xtalk_probe_node':
(.cpuinit.text+0x7d8): undefined reference to `bridge_probe'
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/include/asm/xtalk/xtalk.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/include/asm/xtalk/xtalk.h b/arch/mips/include/asm/xtalk/xtalk.h index 680e7efebbaf..26d2ed1fa917 100644 --- a/arch/mips/include/asm/xtalk/xtalk.h +++ b/arch/mips/include/asm/xtalk/xtalk.h | |||
@@ -47,6 +47,15 @@ typedef struct xtalk_piomap_s *xtalk_piomap_t; | |||
47 | #define XIO_PORT(x) ((xwidgetnum_t)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT)) | 47 | #define XIO_PORT(x) ((xwidgetnum_t)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT)) |
48 | #define XIO_PACK(p, o) ((((uint64_t)(p))<<XIO_PORT_SHIFT) | ((o)&XIO_ADDR_BITS)) | 48 | #define XIO_PACK(p, o) ((((uint64_t)(p))<<XIO_PORT_SHIFT) | ((o)&XIO_ADDR_BITS)) |
49 | 49 | ||
50 | #ifdef CONFIG_PCI | ||
51 | extern int bridge_probe(nasid_t nasid, int widget, int masterwid); | ||
52 | #else | ||
53 | static inline int bridge_probe(nasid_t nasid, int widget, int masterwid) | ||
54 | { | ||
55 | return 0; | ||
56 | } | ||
57 | #endif | ||
58 | |||
50 | #endif /* !__ASSEMBLY__ */ | 59 | #endif /* !__ASSEMBLY__ */ |
51 | 60 | ||
52 | #endif /* _ASM_XTALK_XTALK_H */ | 61 | #endif /* _ASM_XTALK_XTALK_H */ |