aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/prcm.c
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2010-01-26 22:13:11 -0500
committerPaul Walmsley <paul@pwsan.com>2010-01-29 12:14:22 -0500
commitfeec1277a5c599ebca6217bc6bb9f6410e84793b (patch)
treecd095939bdd63b102b235857d434c1890aba8450 /arch/arm/mach-omap2/prcm.c
parentda4d2904abc0c31ac829e9c6d52106d5a6606507 (diff)
OMAP2/3/4 clock: omap2_clk_prepare_for_reboot() is OMAP2xxx-only
omap2_clk_prepare_for_reboot() is only applicable to OMAP2xxx chips, so rename it to omap2xxx_clk_prepare_for_reboot() and only call it when running on OMAP2xxx chips. Remove the old stub in the OMAP3 clock code. Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/prcm.c')
-rw-r--r--arch/arm/mach-omap2/prcm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c
index abafd2298ece..e8e121a41d6d 100644
--- a/arch/arm/mach-omap2/prcm.c
+++ b/arch/arm/mach-omap2/prcm.c
@@ -29,6 +29,7 @@
29#include <plat/control.h> 29#include <plat/control.h>
30 30
31#include "clock.h" 31#include "clock.h"
32#include "clock2xxx.h"
32#include "cm.h" 33#include "cm.h"
33#include "prm.h" 34#include "prm.h"
34#include "prm-regbits-24xx.h" 35#include "prm-regbits-24xx.h"
@@ -133,11 +134,12 @@ EXPORT_SYMBOL(omap_prcm_get_reset_sources);
133void omap_prcm_arch_reset(char mode) 134void omap_prcm_arch_reset(char mode)
134{ 135{
135 s16 prcm_offs; 136 s16 prcm_offs;
136 omap2_clk_prepare_for_reboot();
137 137
138 if (cpu_is_omap24xx()) 138 if (cpu_is_omap24xx()) {
139 omap2xxx_clk_prepare_for_reboot();
140
139 prcm_offs = WKUP_MOD; 141 prcm_offs = WKUP_MOD;
140 else if (cpu_is_omap34xx()) { 142 } else if (cpu_is_omap34xx()) {
141 u32 l; 143 u32 l;
142 144
143 prcm_offs = OMAP3430_GR_MOD; 145 prcm_offs = OMAP3430_GR_MOD;