diff options
author | Vivek Kutal <vivek.kutal@celunite.com> | 2007-12-17 04:56:33 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-02-08 13:38:01 -0500 |
commit | feb72f3b313e1f068b707773e9231af4f87d9580 (patch) | |
tree | aeab0d27b1665d420457369e35fa1e38a1186693 /arch/arm/mach-omap1/pm.c | |
parent | 010bb0cf42fe2fa0a00753e0c11a3e8bfefb37a3 (diff) |
ARM: OMAP1: Remove omap_sram_idle()
This patch removes omap_sram_idle() that is no longer used.
The function called in pm_idle is omap_sram_suspend, omap_sram_idle() is
not used anywhere in omap1.
Signed-off-by: Vivek Kutal <vivek.kutal@celunite.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/pm.c')
-rw-r--r-- | arch/arm/mach-omap1/pm.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c index 64adb24ffb7f..1a2a37158576 100644 --- a/arch/arm/mach-omap1/pm.c +++ b/arch/arm/mach-omap1/pm.c | |||
@@ -95,7 +95,6 @@ static struct kobj_attribute sleep_while_idle_attr = | |||
95 | 95 | ||
96 | #endif | 96 | #endif |
97 | 97 | ||
98 | static void (*omap_sram_idle)(void) = NULL; | ||
99 | static void (*omap_sram_suspend)(unsigned long r0, unsigned long r1) = NULL; | 98 | static void (*omap_sram_suspend)(unsigned long r0, unsigned long r1) = NULL; |
100 | 99 | ||
101 | /* | 100 | /* |
@@ -676,23 +675,17 @@ static int __init omap_pm_init(void) | |||
676 | * memory the MPU can see when it wakes up. | 675 | * memory the MPU can see when it wakes up. |
677 | */ | 676 | */ |
678 | if (cpu_is_omap730()) { | 677 | if (cpu_is_omap730()) { |
679 | omap_sram_idle = omap_sram_push(omap730_idle_loop_suspend, | ||
680 | omap730_idle_loop_suspend_sz); | ||
681 | omap_sram_suspend = omap_sram_push(omap730_cpu_suspend, | 678 | omap_sram_suspend = omap_sram_push(omap730_cpu_suspend, |
682 | omap730_cpu_suspend_sz); | 679 | omap730_cpu_suspend_sz); |
683 | } else if (cpu_is_omap15xx()) { | 680 | } else if (cpu_is_omap15xx()) { |
684 | omap_sram_idle = omap_sram_push(omap1510_idle_loop_suspend, | ||
685 | omap1510_idle_loop_suspend_sz); | ||
686 | omap_sram_suspend = omap_sram_push(omap1510_cpu_suspend, | 681 | omap_sram_suspend = omap_sram_push(omap1510_cpu_suspend, |
687 | omap1510_cpu_suspend_sz); | 682 | omap1510_cpu_suspend_sz); |
688 | } else if (cpu_is_omap16xx()) { | 683 | } else if (cpu_is_omap16xx()) { |
689 | omap_sram_idle = omap_sram_push(omap1610_idle_loop_suspend, | ||
690 | omap1610_idle_loop_suspend_sz); | ||
691 | omap_sram_suspend = omap_sram_push(omap1610_cpu_suspend, | 684 | omap_sram_suspend = omap_sram_push(omap1610_cpu_suspend, |
692 | omap1610_cpu_suspend_sz); | 685 | omap1610_cpu_suspend_sz); |
693 | } | 686 | } |
694 | 687 | ||
695 | if (omap_sram_idle == NULL || omap_sram_suspend == NULL) { | 688 | if (omap_sram_suspend == NULL) { |
696 | printk(KERN_ERR "PM not initialized: Missing SRAM support\n"); | 689 | printk(KERN_ERR "PM not initialized: Missing SRAM support\n"); |
697 | return -ENODEV; | 690 | return -ENODEV; |
698 | } | 691 | } |