aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock.c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2011-02-25 18:06:48 -0500
committerPaul Walmsley <paul@pwsan.com>2011-02-25 18:06:48 -0500
commit4da71ae607fc657075286abd2774041ff4d00fe5 (patch)
treec43b8dfe4c8bae5bd3aa66771488804112154f6e /arch/arm/mach-omap2/clock.c
parent5cd1937b6d5990fe5d5287d925f05afd38e9fb02 (diff)
OMAP: clockdomain: Arch specific funcs for clkdm_clk_enable/disable
Define the following architecture specific funtions for omap2/3/4 .clkdm_clk_enable .clkdm_clk_disable Convert the platform-independent framework to call these functions. Also rename the api's by removing the omap2_ preamble. Hence call omap2_clkdm_k_enable as clkdm_clk_enable and omap2_clkdm_clk_disable as clkdm_clk_disable.a Remove unused functions (_enable/_disable_hwsup) and unsed headers from clockdomain.c file. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock.c')
-rw-r--r--arch/arm/mach-omap2/clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c
index 2a2f15213add..e9625fcf6390 100644
--- a/arch/arm/mach-omap2/clock.c
+++ b/arch/arm/mach-omap2/clock.c
@@ -264,7 +264,7 @@ void omap2_clk_disable(struct clk *clk)
264 clk->ops->disable(clk); 264 clk->ops->disable(clk);
265 265
266 if (clk->clkdm) 266 if (clk->clkdm)
267 omap2_clkdm_clk_disable(clk->clkdm, clk); 267 clkdm_clk_disable(clk->clkdm, clk);
268 268
269 if (clk->parent) 269 if (clk->parent)
270 omap2_clk_disable(clk->parent); 270 omap2_clk_disable(clk->parent);
@@ -304,7 +304,7 @@ int omap2_clk_enable(struct clk *clk)
304 } 304 }
305 305
306 if (clk->clkdm) { 306 if (clk->clkdm) {
307 ret = omap2_clkdm_clk_enable(clk->clkdm, clk); 307 ret = clkdm_clk_enable(clk->clkdm, clk);
308 if (ret) { 308 if (ret) {
309 WARN(1, "clock: %s: could not enable clockdomain %s: " 309 WARN(1, "clock: %s: could not enable clockdomain %s: "
310 "%d\n", clk->name, clk->clkdm->name, ret); 310 "%d\n", clk->name, clk->clkdm->name, ret);
@@ -322,7 +322,7 @@ int omap2_clk_enable(struct clk *clk)
322 322
323oce_err3: 323oce_err3:
324 if (clk->clkdm) 324 if (clk->clkdm)
325 omap2_clkdm_clk_disable(clk->clkdm, clk); 325 clkdm_clk_disable(clk->clkdm, clk);
326oce_err2: 326oce_err2:
327 if (clk->parent) 327 if (clk->parent)
328 omap2_clk_disable(clk->parent); 328 omap2_clk_disable(clk->parent);