ppc4xx: Compilation fixes for PCI-less configs
PATCH 1/1 ppc4xx: Compilation fixes for 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 <[email protected]>
arch/ppc/platforms/4xx/bubinga.c +2 -0
@@ -116,6 +116,7 @@void __init bios_fixup (struct pci_controller *hose,struct pcil0_regs *pcip) { +#ifdef CONFIG_PCI unsigned int bar_response, bar;/*
@@ -212,6 +213,7 @@printk (" ptm2la\t0x%x\n" ,in_le32 (&(pcip->ptm2la)));#endif +#endif }void __init
arch/ppc/platforms/4xx/cpci405.c +2 -0
@@ -126,6 +126,7 @@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 @@PCI_FUNC (hose->first_busno), bar, &bar_response); } +#endif }void __init
arch/ppc/platforms/4xx/ep405.c +2 -0
@@ -68,6 +68,7 @@void __init bios_fixup (struct pci_controller *hose,struct pcil0_regs *pcip) { +#ifdef CONFIG_PCI unsigned int bar_response, bar;/* * Expected PCI mapping:
@@ -130,6 +131,7 @@ PCI_FUNC(hose->first_busno), bar, bar_response); }/* end work arround */ +#endif }void __init