diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-01-26 22:13:09 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-01-29 12:14:22 -0500 |
commit | 4680c29f69e981106da2abfea7f1a3e6f1b03791 (patch) | |
tree | c3998052c1d27009c524274d5823636375bf383c /arch/arm/mach-omap2/clock2xxx.c | |
parent | 35e424e2c0229aa1e32776fac23902150bd0ab9a (diff) |
OMAP2/3 clock: clean up omap*_clk_arch_init()
In the OMAP3xxx clock code, remove the #ifdef CONFIG_ARCH_OMAP3 in
clock34xx.c, since this file is only compiled for OMAP3xxx builds. Also,
rename omap2_clk_arch_init in this file to omap3xxx_clk_arch_init() to
pave the way for multi-OMAP kernels. Ensure that it is not executed
on non-OMAP3xxx systems.
In the OMAP2xxx clock code, rename omap2_clk_arch_init in this file to
omap2xxx_clk_arch_init() to pave the way for multi-OMAP kernels.
Ensure that it is not executed on non-OMAP2xxx systems.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock2xxx.c')
-rw-r--r-- | arch/arm/mach-omap2/clock2xxx.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/clock2xxx.c b/arch/arm/mach-omap2/clock2xxx.c index e5b9851b7419..b7e81ec3d819 100644 --- a/arch/arm/mach-omap2/clock2xxx.c +++ b/arch/arm/mach-omap2/clock2xxx.c | |||
@@ -101,11 +101,14 @@ void omap2_clk_prepare_for_reboot(void) | |||
101 | * Switch the MPU rate if specified on cmdline. | 101 | * Switch the MPU rate if specified on cmdline. |
102 | * We cannot do this early until cmdline is parsed. | 102 | * We cannot do this early until cmdline is parsed. |
103 | */ | 103 | */ |
104 | static int __init omap2_clk_arch_init(void) | 104 | static int __init omap2xxx_clk_arch_init(void) |
105 | { | 105 | { |
106 | struct clk *virt_prcm_set, *sys_ck, *dpll_ck, *mpu_ck; | 106 | struct clk *virt_prcm_set, *sys_ck, *dpll_ck, *mpu_ck; |
107 | unsigned long sys_ck_rate; | 107 | unsigned long sys_ck_rate; |
108 | 108 | ||
109 | if (!cpu_is_omap24xx()) | ||
110 | return 0; | ||
111 | |||
109 | if (!mpurate) | 112 | if (!mpurate) |
110 | return -EINVAL; | 113 | return -EINVAL; |
111 | 114 | ||
@@ -129,6 +132,6 @@ static int __init omap2_clk_arch_init(void) | |||
129 | 132 | ||
130 | return 0; | 133 | return 0; |
131 | } | 134 | } |
132 | arch_initcall(omap2_clk_arch_init); | 135 | arch_initcall(omap2xxx_clk_arch_init); |
133 | 136 | ||
134 | 137 | ||