[PATCH] powerpc/85xx/86xx: Fix build w/ CONFIG_PCI=n

Kumar Gala galak at kernel.crashing.org
Tue Apr 20 14:13:58 EST 2010


On Apr 16, 2010, at 2:07 PM, Anton Vorontsov wrote:

> Currently some MPC85xx and MPC86xx boards fail to build without
> CONFIG_PCI:
> 
> arch/powerpc/platforms/fsl_uli1575.c: In function 'quirk_final_uli5249':
> arch/powerpc/platforms/fsl_uli1575.c:234: error: implicit declaration of function 'pci_bus_for_each_resource'
> arch/powerpc/platforms/fsl_uli1575.c:234: error: expected ';' before '{' token
> cc1: warnings being treated as errors
> arch/powerpc/platforms/fsl_uli1575.c:223: warning: unused variable 'dummy'
> make[1]: *** [arch/powerpc/platforms/fsl_uli1575.o] Error 1
> 
> This patch fixes the issue by appending 'if PCI' condition when
> selecting FSL_ULI1575 Kconfig symbol.
> 
> Signed-off-by: Anton Vorontsov <avorontsov at mvista.com>
> ---
> arch/powerpc/platforms/85xx/Kconfig |    4 ++--
> arch/powerpc/platforms/86xx/Kconfig |    4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)

applied to merge.

- k


More information about the Linuxppc-dev mailing list