aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock2xxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/clock2xxx.c')
-rw-r--r--arch/arm/mach-omap2/clock2xxx.c7
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 */
104static int __init omap2_clk_arch_init(void) 104static 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}
132arch_initcall(omap2_clk_arch_init); 135arch_initcall(omap2xxx_clk_arch_init);
133 136
134 137