summaryrefslogtreecommitdiff
path: root/arch/ppc/platforms/4xx/bubinga.c
diff options
context:
space:
mode:
authorWojtek Kaniewski <wojtekka@toxygen.net>2006-11-08 19:52:57 -0800
committerPaul Mackerras <paulus@samba.org>2006-12-04 20:39:24 +1100
commit1d30593e4c406c753e395676ba8b58600ccccbc1 (patch)
treeb30f35675240cfe4a8ef758554d8eac5602bfc18 /arch/ppc/platforms/4xx/bubinga.c
parentd6a0005c26aea9d470cf80c392d3bf2039dc4679 (diff)
[POWERPC] Compilation fixes for ppc4xx PCI-less configs
Fix compilation without PCI support for Bubinga, CPCI405 and EP405. bios_fixup() for these boards uses functions available only with CONFIG_PCI, so linker fails. Signed-off-by: Wojtek Kaniewski <wojtekka@toxygen.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/platforms/4xx/bubinga.c')
-rw-r--r--arch/ppc/platforms/4xx/bubinga.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ppc/platforms/4xx/bubinga.c b/arch/ppc/platforms/4xx/bubinga.c
index 4009f4983ca6..75857b38e894 100644
--- a/arch/ppc/platforms/4xx/bubinga.c
+++ b/arch/ppc/platforms/4xx/bubinga.c
@@ -116,6 +116,7 @@ bubinga_early_serial_map(void)
void __init
bios_fixup(struct pci_controller *hose, struct pcil0_regs *pcip)
{
+#ifdef CONFIG_PCI
unsigned int bar_response, bar;
/*
@@ -212,6 +213,7 @@ bios_fixup(struct pci_controller *hose, struct pcil0_regs *pcip)
printk(" ptm2la\t0x%x\n", in_le32(&(pcip->ptm2la)));
#endif
+#endif
}
void __init