diff options
Diffstat (limited to 'arch/arm/mach-omap2/pm44xx.c')
| -rw-r--r-- | arch/arm/mach-omap2/pm44xx.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c index 54544b4fc76b..e9f4862c4de4 100644 --- a/arch/arm/mach-omap2/pm44xx.c +++ b/arch/arm/mach-omap2/pm44xx.c | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | #include <linux/err.h> | 16 | #include <linux/err.h> |
| 17 | #include <linux/slab.h> | 17 | #include <linux/slab.h> |
| 18 | 18 | ||
| 19 | #include <plat/powerdomain.h> | 19 | #include "powerdomain.h" |
| 20 | #include <mach/omap4-common.h> | 20 | #include <mach/omap4-common.h> |
| 21 | 21 | ||
| 22 | struct power_state { | 22 | struct power_state { |
| @@ -31,12 +31,6 @@ struct power_state { | |||
| 31 | static LIST_HEAD(pwrst_list); | 31 | static LIST_HEAD(pwrst_list); |
| 32 | 32 | ||
| 33 | #ifdef CONFIG_SUSPEND | 33 | #ifdef CONFIG_SUSPEND |
| 34 | static int omap4_pm_prepare(void) | ||
| 35 | { | ||
| 36 | disable_hlt(); | ||
| 37 | return 0; | ||
| 38 | } | ||
| 39 | |||
| 40 | static int omap4_pm_suspend(void) | 34 | static int omap4_pm_suspend(void) |
| 41 | { | 35 | { |
| 42 | do_wfi(); | 36 | do_wfi(); |
| @@ -59,28 +53,22 @@ static int omap4_pm_enter(suspend_state_t suspend_state) | |||
| 59 | return ret; | 53 | return ret; |
| 60 | } | 54 | } |
| 61 | 55 | ||
| 62 | static void omap4_pm_finish(void) | ||
| 63 | { | ||
| 64 | enable_hlt(); | ||
| 65 | return; | ||
| 66 | } | ||
| 67 | |||
| 68 | static int omap4_pm_begin(suspend_state_t state) | 56 | static int omap4_pm_begin(suspend_state_t state) |
| 69 | { | 57 | { |
| 58 | disable_hlt(); | ||
| 70 | return 0; | 59 | return 0; |
| 71 | } | 60 | } |
| 72 | 61 | ||
| 73 | static void omap4_pm_end(void) | 62 | static void omap4_pm_end(void) |
| 74 | { | 63 | { |
| 64 | enable_hlt(); | ||
| 75 | return; | 65 | return; |
| 76 | } | 66 | } |
| 77 | 67 | ||
| 78 | static struct platform_suspend_ops omap_pm_ops = { | 68 | static struct platform_suspend_ops omap_pm_ops = { |
| 79 | .begin = omap4_pm_begin, | 69 | .begin = omap4_pm_begin, |
| 80 | .end = omap4_pm_end, | 70 | .end = omap4_pm_end, |
| 81 | .prepare = omap4_pm_prepare, | ||
| 82 | .enter = omap4_pm_enter, | 71 | .enter = omap4_pm_enter, |
| 83 | .finish = omap4_pm_finish, | ||
| 84 | .valid = suspend_valid_only_mem, | 72 | .valid = suspend_valid_only_mem, |
| 85 | }; | 73 | }; |
| 86 | #endif /* CONFIG_SUSPEND */ | 74 | #endif /* CONFIG_SUSPEND */ |
