]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: imx: build CPU suspend code only when needed
authorArnd Bergmann <arnd@arndb.de>
Tue, 30 Apr 2013 15:57:00 +0000 (17:57 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 May 2013 20:36:31 +0000 (22:36 +0200)
The ARM CPU suspend function has its own configuration symbol,
which we need to use for conditionalizing any code calling into
it as well.

arch/arm/mach-imx/built-in.o: In function `v7_cpu_resume':
/git/arm-soc/arch/arm/mach-imx/headsmp.S:57: undefined
 reference to `cpu_resume'

Cc: Sascha Hauer <kernel@pengutronix.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-imx/headsmp.S

index 921fc15558549093f0ff0bbcc9b9de946d520152..524e52e59d6c15b575fb355ed8ff7a474846faf7 100644 (file)
@@ -24,7 +24,7 @@ ENTRY(v7_secondary_startup)
 ENDPROC(v7_secondary_startup)
 #endif
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_ARM_CPU_SUSPEND
 /*
  * The following code is located into the .data section.  This is to
  * allow phys_l2x0_saved_regs to be accessed with a relative load