Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: OMAP4: Fix definition of IS_PM44XX_ERRATUM

Just like IS_PM34XX_ERRATUM, IS_PM44XX_ERRATUM is valid only if
CONFIG_PM is enabled, else, disabling CONFIG_PM results in build
failure complaining about the following:
arch/arm/mach-omap2/built-in.o: In function `omap4_boot_secondary':
:(.text+0x8a70): undefined reference to `pm44xx_errata'

Fixes: c962184 (ARM: OMAP4: PM: add errata support)
Reported-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.ocm>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Nishanth Menon and committed by
Tony Lindgren
07484ca3 698b4853

+1 -1
+1 -1
arch/arm/mach-omap2/pm.h
··· 103 103 104 104 #define PM_OMAP4_ROM_SMP_BOOT_ERRATUM_GICD (1 << 0) 105 105 106 - #if defined(CONFIG_ARCH_OMAP4) 106 + #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP4) 107 107 extern u16 pm44xx_errata; 108 108 #define IS_PM44XX_ERRATUM(id) (pm44xx_errata & (id)) 109 109 #else