aboutsummaryrefslogtreecommitdiff
path: root/arch/ppc/platforms/4xx/cpci405.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/cpci405.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/cpci405.c')
-rw-r--r--arch/ppc/platforms/4xx/cpci405.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ppc/platforms/4xx/cpci405.c b/arch/ppc/platforms/4xx/cpci405.c
index 367430998fc..8474b05b795 100644
--- a/arch/ppc/platforms/4xx/cpci405.c
+++ b/arch/ppc/platforms/4xx/cpci405.c
@@ -126,6 +126,7 @@ cpci405_setup_arch(void)
void __init
bios_fixup(struct pci_controller *hose, struct pcil0_regs *pcip)
{
+#ifdef CONFIG_PCI
unsigned int bar_response, bar;
/* Disable region first */
@@ -167,6 +168,7 @@ bios_fixup(struct pci_controller *hose, struct pcil0_regs *pcip)
PCI_FUNC(hose->first_busno), bar,
&bar_response);
}
+#endif
}
void __init