• Arnd Bergmann's avatar
    ARM: imx: build pm-imx5 code only when PM is enabled · a28eecef
    Arnd Bergmann authored
    This moves the imx5 pm code out of the list of unconditionally
    compiled files for imx5, mirroring what we already do for imx6
    and how it was done before the code was move from mach-mx5 to
    mach-imx in v3.3.
    
    Without this patch, building with CONFIG_PM disabled results in:
    
    arch/arm/mach-imx/pm-imx5.c:202:116: error: redefinition of 'imx51_pm_init'
    arch/arm/mach-imx/include/mach-imx/common.h:154:91: note: previous definition of 'imx51_pm_init' was here
    arch/arm/mach-imx/pm-imx5.c:209:116: error: redefinition of 'imx53_pm_init'
    arch/arm/mach-imx/include/mach-imx/common.h:155:91: note: previous definition of 'imx53_pm_init' was here
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
    Cc: Sascha Hauer <s.hauer@pengutronix.de>
    Cc: stable@vger.kernel.org
    a28eecef
Makefile 3.93 KB