PCI-less kernel for PPC405-based boards
PATCH 1/1 PCI-less kernel for PPC405-based boards
This patch fixes compilation errors of PCI-less kernel for Bubinga and EP405 boards. Other PPC405-based boards with bios_fixup() (Walnut and Sycamore) already contain required #ifdefs.
Signed-off-by Wojtek Kaniewski <[email protected]>
arch/ppc/platforms/4xx/bubinga.c +2 -1
@@ -117,7 +117,7 @@void __init bios_fixup (struct pci_controller *hose,struct pcil0_regs *pcip) { - +#ifdef CONFIG_PCI unsigned int bar_response, bar;/* * Expected PCI mapping:
@@ -213,6 +213,7 @@printk (" ptm2la\t0x%x\n" ,in_le32 (&(pcip->ptm2la)));#endif +#endif }void __init
arch/ppc/platforms/4xx/ep405.c +2 -0
@@ -69,6 +69,7 @@void __init bios_fixup (struct pci_controller *hose,struct pcil0_regs *pcip) { +#ifdef CONFIG_PCI unsigned int bar_response, bar;/* * Expected PCI mapping:
@@ -131,6 +132,7 @@ PCI_FUNC(hose->first_busno), bar, bar_response); }/* end work arround */ +#endif }void __init