diff options
author | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2014-09-23 13:18:27 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-09-23 13:47:43 -0400 |
commit | 658cff0de56ebb1baa581f605dd92015366c511f (patch) | |
tree | d7c2fd9e42edf1a36d1cb405029658a485e3846e /arch/arm/mach-exynos | |
parent | 2c054716a57c6eac839e94129b17f73930e817eb (diff) |
ARM: EXYNOS: Fix build with PM_SLEEP=n and ARM_EXYNOS_CPUIDLE=n
Fix building of exynos_defconfig with disabled CONFIG_PM_SLEEP by
adding checking whether Exynos cpuidle support is enabled before
accessing exynos_enter_aftr.
The build error message:
arch/arm/mach-exynos/built-in.o:(.data+0x74): undefined reference to `exynos_enter_aftr'
make: *** [vmlinux] Error 1
This patch has been tested on Exynos4210 based Origen board.
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/exynos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 6a24e111d6e1..d57f136a5a81 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c | |||
@@ -161,7 +161,9 @@ static void exynos_restart(enum reboot_mode mode, const char *cmd) | |||
161 | 161 | ||
162 | static struct platform_device exynos_cpuidle = { | 162 | static struct platform_device exynos_cpuidle = { |
163 | .name = "exynos_cpuidle", | 163 | .name = "exynos_cpuidle", |
164 | #ifdef CONFIG_ARM_EXYNOS_CPUIDLE | ||
164 | .dev.platform_data = exynos_enter_aftr, | 165 | .dev.platform_data = exynos_enter_aftr, |
166 | #endif | ||
165 | .id = -1, | 167 | .id = -1, |
166 | }; | 168 | }; |
167 | 169 | ||