From: Sylvain Munaut Some custom cards might not need PCI, without this patch, compilation fails. Signed-off-by: Roger Blofeld Signed-off-by: Sylvain Munaut Signed-off-by: Andrew Morton --- arch/ppc/platforms/lite5200.c | 2 ++ include/asm-ppc/io.h | 2 ++ include/asm-ppc/mpc52xx.h | 11 +++++++++++ 3 files changed, 15 insertions(+) diff -puN arch/ppc/platforms/lite5200.c~ppc32-allows-compilation-of-a-mpc52xx-kernel-without arch/ppc/platforms/lite5200.c --- devel/arch/ppc/platforms/lite5200.c~ppc32-allows-compilation-of-a-mpc52xx-kernel-without 2006-01-03 21:16:17.000000000 -0800 +++ devel-akpm/arch/ppc/platforms/lite5200.c 2006-01-03 21:16:17.000000000 -0800 @@ -196,8 +196,10 @@ platform_init(unsigned long r3, unsigned mpc52xx_set_bat(); /* No ISA bus by default */ +#ifdef CONFIG_PCI isa_io_base = 0; isa_mem_base = 0; +#endif /* Powersave */ /* This is provided as an example on how to do it. But you diff -puN include/asm-ppc/io.h~ppc32-allows-compilation-of-a-mpc52xx-kernel-without include/asm-ppc/io.h --- devel/include/asm-ppc/io.h~ppc32-allows-compilation-of-a-mpc52xx-kernel-without 2006-01-03 21:16:17.000000000 -0800 +++ devel-akpm/include/asm-ppc/io.h 2006-01-03 21:16:17.000000000 -0800 @@ -27,6 +27,8 @@ #if defined(CONFIG_4xx) #include +#elif defined(CONFIG_PPC_MPC52xx) +#include #elif defined(CONFIG_8xx) #include #elif defined(CONFIG_8260) diff -puN include/asm-ppc/mpc52xx.h~ppc32-allows-compilation-of-a-mpc52xx-kernel-without include/asm-ppc/mpc52xx.h --- devel/include/asm-ppc/mpc52xx.h~ppc32-allows-compilation-of-a-mpc52xx-kernel-without 2006-01-03 21:16:17.000000000 -0800 +++ devel-akpm/include/asm-ppc/mpc52xx.h 2006-01-03 21:16:17.000000000 -0800 @@ -29,6 +29,17 @@ struct pt_regs; #endif /* __ASSEMBLY__ */ +#ifdef CONFIG_PCI +#define _IO_BASE isa_io_base +#define _ISA_MEM_BASE isa_mem_base +#define PCI_DRAM_OFFSET pci_dram_offset +#else +#define _IO_BASE 0 +#define _ISA_MEM_BASE 0 +#define PCI_DRAM_OFFSET 0 +#endif + + /* ======================================================================== */ /* PPC Sys devices definition */ /* ======================================================================== */ _