• Anton Vorontsov's avatar
    powerpc/85xx/86xx: Fix build w/ CONFIG_PCI=n · e0f278ad
    Anton Vorontsov authored
    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: default avatarAnton Vorontsov <avorontsov@mvista.com>
    Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
    e0f278ad
Kconfig 1.55 KB