]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx: make imx51/3 suspend optional
authorArnd Bergmann <arnd@arndb.de>
Thu, 21 May 2015 12:06:30 +0000 (14:06 +0200)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 3 Jun 2015 06:51:44 +0000 (14:51 +0800)
commitc24f42eef53ca0258374e88b469ba89ece40d6ba
tree3debbf366b64eb00af43f0da3081ab24078bec8e
parentc22572819d8df22f32664af261a26b2160c27bc2
ARM: imx: make imx51/3 suspend optional

A recent change to the imx53 power management caused a build
regression when CONFIG_SOC_IMX53 is disabled:

mach-imx/built-in.o:(.init.rodata+0x60): undefined reference to `imx53_suspend'
mach-imx/built-in.o:(.init.rodata+0x64): undefined reference to `imx53_suspend_sz'

This avoids the problem by compiling the code in question
conditionally on the presence of CONFIG_SOC_IMX53. For
consistency, I'm also changing the same thing for
CONFIG_SOC_IMX51.

An additional benefit of this approach is reduced code size
for kernels that only include support for one of the two
SoCs.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: d5358f23eb7b ("ARM: imx53: Set DDR pins to high impedance when in suspend to RAM.")
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/pm-imx5.c