aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock24xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/clock24xx.c')
-rw-r--r--arch/arm/mach-omap2/clock24xx.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/clock24xx.c b/arch/arm/mach-omap2/clock24xx.c
index 069f3e1827a6..f2b74e9b7d8d 100644
--- a/arch/arm/mach-omap2/clock24xx.c
+++ b/arch/arm/mach-omap2/clock24xx.c
@@ -369,9 +369,9 @@ static long omap2_dpllcore_round_rate(unsigned long target_rate)
369 369
370} 370}
371 371
372static void omap2_dpllcore_recalc(struct clk *clk) 372static unsigned long omap2_dpllcore_recalc(struct clk *clk)
373{ 373{
374 clk->rate = omap2_get_dpll_rate_24xx(clk); 374 return omap2_get_dpll_rate_24xx(clk);
375} 375}
376 376
377static int omap2_reprogram_dpllcore(struct clk *clk, unsigned long rate) 377static int omap2_reprogram_dpllcore(struct clk *clk, unsigned long rate)
@@ -448,9 +448,9 @@ static int omap2_reprogram_dpllcore(struct clk *clk, unsigned long rate)
448 * 448 *
449 * Set virt_prcm_set's rate to the mpu_speed field of the current PRCM set. 449 * Set virt_prcm_set's rate to the mpu_speed field of the current PRCM set.
450 */ 450 */
451static void omap2_table_mpu_recalc(struct clk *clk) 451static unsigned long omap2_table_mpu_recalc(struct clk *clk)
452{ 452{
453 clk->rate = curr_prcm_set->mpu_speed; 453 return curr_prcm_set->mpu_speed;
454} 454}
455 455
456/* 456/*
@@ -647,14 +647,14 @@ static u32 omap2_get_sysclkdiv(void)
647 return div; 647 return div;
648} 648}
649 649
650static void omap2_osc_clk_recalc(struct clk *clk) 650static unsigned long omap2_osc_clk_recalc(struct clk *clk)
651{ 651{
652 clk->rate = omap2_get_apll_clkin() * omap2_get_sysclkdiv(); 652 return omap2_get_apll_clkin() * omap2_get_sysclkdiv();
653} 653}
654 654
655static void omap2_sys_clk_recalc(struct clk *clk) 655static unsigned long omap2_sys_clk_recalc(struct clk *clk)
656{ 656{
657 clk->rate = clk->parent->rate / omap2_get_sysclkdiv(); 657 return clk->parent->rate / omap2_get_sysclkdiv();
658} 658}
659 659
660/* 660/*
@@ -707,9 +707,9 @@ int __init omap2_clk_init(void)
707 707
708 clk_init(&omap2_clk_functions); 708 clk_init(&omap2_clk_functions);
709 709
710 omap2_osc_clk_recalc(&osc_ck); 710 osc_ck.rate = omap2_osc_clk_recalc(&osc_ck);
711 propagate_rate(&osc_ck); 711 propagate_rate(&osc_ck);
712 omap2_sys_clk_recalc(&sys_ck); 712 sys_ck.rate = omap2_sys_clk_recalc(&sys_ck);
713 propagate_rate(&sys_ck); 713 propagate_rate(&sys_ck);
714 714
715 for (c = omap24xx_clks; c < omap24xx_clks + ARRAY_SIZE(omap24xx_clks); c++) 715 for (c = omap24xx_clks; c < omap24xx_clks + ARRAY_SIZE(omap24xx_clks); c++)