diff options
-rw-r--r-- | arch/arm/mach-exynos/cpuidle.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-exynos/exynos.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index cac51d852605..05cb00c79406 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | #include <mach/map.h> | 29 | #include <mach/map.h> |
30 | 30 | ||
31 | #include "common.h" | 31 | static void (*exynos_enter_aftr)(void); |
32 | 32 | ||
33 | static int idle_finisher(unsigned long flags) | 33 | static int idle_finisher(unsigned long flags) |
34 | { | 34 | { |
@@ -87,6 +87,8 @@ static int exynos_cpuidle_probe(struct platform_device *pdev) | |||
87 | { | 87 | { |
88 | int ret; | 88 | int ret; |
89 | 89 | ||
90 | exynos_enter_aftr = (void *)(pdev->dev.platform_data); | ||
91 | |||
90 | ret = cpuidle_register(&exynos_idle_driver, NULL); | 92 | ret = cpuidle_register(&exynos_idle_driver, NULL); |
91 | if (ret) { | 93 | if (ret) { |
92 | dev_err(&pdev->dev, "failed to register cpuidle driver\n"); | 94 | dev_err(&pdev->dev, "failed to register cpuidle driver\n"); |
diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 89872405cccd..7d9d8762b56e 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c | |||
@@ -171,8 +171,9 @@ void exynos_restart(enum reboot_mode mode, const char *cmd) | |||
171 | } | 171 | } |
172 | 172 | ||
173 | static struct platform_device exynos_cpuidle = { | 173 | static struct platform_device exynos_cpuidle = { |
174 | .name = "exynos_cpuidle", | 174 | .name = "exynos_cpuidle", |
175 | .id = -1, | 175 | .dev.platform_data = exynos_enter_aftr, |
176 | .id = -1, | ||
176 | }; | 177 | }; |
177 | 178 | ||
178 | void __init exynos_cpuidle_init(void) | 179 | void __init exynos_cpuidle_init(void) |