diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-06-22 12:41:48 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-06-24 04:54:39 -0400 |
commit | 2c74a0cefa463a7a483b07ba4d2ea8e4ec7b996c (patch) | |
tree | 51fc396c9315b42448da071b40d2199fa1ff769f /arch/arm/mach-omap2/pm34xx.c | |
parent | 14c79bbed7e06135bcbccb2b92c19df7115b4502 (diff) |
ARM: pm: hide 1st and 2nd arguments to cpu_suspend from platform code
The first and second arguments shouldn't concern platform code, so
hide them from each platforms caller.
Tested-by: Kevin Hilman <khilman@ti.com>
Acked-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/pm34xx.c')
-rw-r--r-- | arch/arm/mach-omap2/pm34xx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index ae4017750bbe..3e9a13e1ac57 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/console.h> | 31 | #include <linux/console.h> |
32 | #include <trace/events/power.h> | 32 | #include <trace/events/power.h> |
33 | 33 | ||
34 | #include <asm/suspend.h> | ||
35 | |||
34 | #include <plat/sram.h> | 36 | #include <plat/sram.h> |
35 | #include "clockdomain.h" | 37 | #include "clockdomain.h" |
36 | #include "powerdomain.h" | 38 | #include "powerdomain.h" |
@@ -411,8 +413,7 @@ void omap_sram_idle(void) | |||
411 | * from there before resuming. | 413 | * from there before resuming. |
412 | */ | 414 | */ |
413 | if (save_state == 1 || save_state == 3) | 415 | if (save_state == 1 || save_state == 3) |
414 | cpu_suspend(0, PHYS_OFFSET - PAGE_OFFSET, save_state, | 416 | cpu_suspend(save_state, omap34xx_do_sram_idle); |
415 | omap34xx_do_sram_idle); | ||
416 | else | 417 | else |
417 | omap34xx_do_sram_idle(save_state); | 418 | omap34xx_do_sram_idle(save_state); |
418 | 419 | ||