Skip to content

Commit 658cff0

Browse files
bzolnierkgene
authored andcommitted
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>
1 parent 2c05471 commit 658cff0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/arm/mach-exynos/exynos.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ static void exynos_restart(enum reboot_mode mode, const char *cmd)
161161

162162
static struct platform_device exynos_cpuidle = {
163163
.name = "exynos_cpuidle",
164+
#ifdef CONFIG_ARM_EXYNOS_CPUIDLE
164165
.dev.platform_data = exynos_enter_aftr,
166+
#endif
165167
.id = -1,
166168
};
167169

0 commit comments

Comments
 (0)