aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhijit Pagare <abhijitpagare@ti.com>2010-01-26 22:12:58 -0500
committerPaul Walmsley <paul@pwsan.com>2010-01-26 22:12:58 -0500
commitbf9854010692d7fbb4c21817c66270b40db55a3b (patch)
treeef9bcba34de9ecfc9b5797139922aabe2cb9b65c
parent0dfc242ff05fcc4bbef1e1bf4eed6f7d01e0cb44 (diff)
ARM: OMAP4 clock framework: Remove the checks preventing OMAP4 clockdomain validation
The clockdomain related code being in place, it is not necessary to have some part of the clock code commented out. This would help the validation of the clockdomain functions using the clock level interfaces. Signed-off-by: Abhijit Pagare <abhijitpagare@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r--arch/arm/mach-omap2/clock.c8
-rw-r--r--arch/arm/mach-omap2/clock44xx_data.c2
2 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c
index 7565f8e40a0e..d88b25565a42 100644
--- a/arch/arm/mach-omap2/clock.c
+++ b/arch/arm/mach-omap2/clock.c
@@ -181,7 +181,6 @@ static int _dpll_test_fint(struct clk *clk, u8 n)
181 * clockdomain pointer, and save it into the struct clk. Intended to be 181 * clockdomain pointer, and save it into the struct clk. Intended to be
182 * called during clk_register(). No return value. 182 * called during clk_register(). No return value.
183 */ 183 */
184#ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once clkdm f/w is in place */
185void omap2_init_clk_clkdm(struct clk *clk) 184void omap2_init_clk_clkdm(struct clk *clk)
186{ 185{
187 struct clockdomain *clkdm; 186 struct clockdomain *clkdm;
@@ -199,7 +198,6 @@ void omap2_init_clk_clkdm(struct clk *clk)
199 "clkdm %s\n", clk->name, clk->clkdm_name); 198 "clkdm %s\n", clk->name, clk->clkdm_name);
200 } 199 }
201} 200}
202#endif
203 201
204/** 202/**
205 * omap2_init_clksel_parent - set a clksel clk's parent field from the hardware 203 * omap2_init_clksel_parent - set a clksel clk's parent field from the hardware
@@ -465,10 +463,8 @@ void omap2_clk_disable(struct clk *clk)
465 _omap2_clk_disable(clk); 463 _omap2_clk_disable(clk);
466 if (clk->parent) 464 if (clk->parent)
467 omap2_clk_disable(clk->parent); 465 omap2_clk_disable(clk->parent);
468#ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once clkdm f/w is in place */
469 if (clk->clkdm) 466 if (clk->clkdm)
470 omap2_clkdm_clk_disable(clk->clkdm, clk); 467 omap2_clkdm_clk_disable(clk->clkdm, clk);
471#endif
472 468
473 } 469 }
474} 470}
@@ -478,10 +474,8 @@ int omap2_clk_enable(struct clk *clk)
478 int ret = 0; 474 int ret = 0;
479 475
480 if (clk->usecount++ == 0) { 476 if (clk->usecount++ == 0) {
481#ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once clkdm f/w is in place */
482 if (clk->clkdm) 477 if (clk->clkdm)
483 omap2_clkdm_clk_enable(clk->clkdm, clk); 478 omap2_clkdm_clk_enable(clk->clkdm, clk);
484#endif
485 479
486 if (clk->parent) { 480 if (clk->parent) {
487 ret = omap2_clk_enable(clk->parent); 481 ret = omap2_clk_enable(clk->parent);
@@ -500,10 +494,8 @@ int omap2_clk_enable(struct clk *clk)
500 return ret; 494 return ret;
501 495
502err: 496err:
503#ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once clkdm f/w is in place */
504 if (clk->clkdm) 497 if (clk->clkdm)
505 omap2_clkdm_clk_disable(clk->clkdm, clk); 498 omap2_clkdm_clk_disable(clk->clkdm, clk);
506#endif
507 clk->usecount--; 499 clk->usecount--;
508 return ret; 500 return ret;
509} 501}
diff --git a/arch/arm/mach-omap2/clock44xx_data.c b/arch/arm/mach-omap2/clock44xx_data.c
index 9d882bcb56e3..ae9649f2973d 100644
--- a/arch/arm/mach-omap2/clock44xx_data.c
+++ b/arch/arm/mach-omap2/clock44xx_data.c
@@ -2749,9 +2749,7 @@ int __init omap2_clk_init(void)
2749 if (c->cpu & cpu_clkflg) { 2749 if (c->cpu & cpu_clkflg) {
2750 clkdev_add(&c->lk); 2750 clkdev_add(&c->lk);
2751 clk_register(c->lk.clk); 2751 clk_register(c->lk.clk);
2752 /* TODO
2753 omap2_init_clk_clkdm(c->lk.clk); 2752 omap2_init_clk_clkdm(c->lk.clk);
2754 */
2755 } 2753 }
2756 2754
2757 recalculate_root_clocks(); 2755 recalculate_root_clocks();