aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2012-04-27 07:02:53 -0400
committerPaul Walmsley <paul@pwsan.com>2012-11-12 21:18:50 -0500
commitc4a1ea2c6229b18c10c5a49a0f8f4ad2c3e2355d (patch)
tree659ce13bb600d8b7feb7fd42176537cfdbd63b7a
parentf7f73aab3d5bd19ba0f72ff00fb6b3be28e1a4d3 (diff)
ARM: OMAP: hwmod: Cleanup !CONFIG_COMMON_CLK parts
Clean all #ifdef's added as part of fixing the clkdm accesses from hwmod. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Mike Turquette <mturquette@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r--arch/arm/mach-omap2/omap_hwmod.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index c3d3e62a5ac2..68616b2b5b96 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -130,11 +130,7 @@
130#include <linux/kernel.h> 130#include <linux/kernel.h>
131#include <linux/errno.h> 131#include <linux/errno.h>
132#include <linux/io.h> 132#include <linux/io.h>
133#ifdef CONFIG_COMMON_CLK
134#include <linux/clk-provider.h> 133#include <linux/clk-provider.h>
135#else
136#include <linux/clk.h>
137#endif
138#include <linux/delay.h> 134#include <linux/delay.h>
139#include <linux/err.h> 135#include <linux/err.h>
140#include <linux/list.h> 136#include <linux/list.h>
@@ -620,17 +616,13 @@ static int _disable_wakeup(struct omap_hwmod *oh, u32 *v)
620 616
621static struct clockdomain *_get_clkdm(struct omap_hwmod *oh) 617static struct clockdomain *_get_clkdm(struct omap_hwmod *oh)
622{ 618{
619 struct clk_hw_omap *clk;
620
623 if (oh->clkdm) { 621 if (oh->clkdm) {
624 return oh->clkdm; 622 return oh->clkdm;
625 } else if (oh->_clk) { 623 } else if (oh->_clk) {
626#ifdef CONFIG_COMMON_CLK
627 struct clk_hw_omap *clk;
628
629 clk = to_clk_hw_omap(__clk_get_hw(oh->_clk)); 624 clk = to_clk_hw_omap(__clk_get_hw(oh->_clk));
630 return clk->clkdm; 625 return clk->clkdm;
631#else
632 return oh->_clk->clkdm;
633#endif
634 } 626 }
635 return NULL; 627 return NULL;
636} 628}
@@ -3588,9 +3580,7 @@ struct powerdomain *omap_hwmod_get_pwrdm(struct omap_hwmod *oh)
3588 struct clk *c; 3580 struct clk *c;
3589 struct omap_hwmod_ocp_if *oi; 3581 struct omap_hwmod_ocp_if *oi;
3590 struct clockdomain *clkdm; 3582 struct clockdomain *clkdm;
3591#ifdef CONFIG_COMMON_CLK
3592 struct clk_hw_omap *clk; 3583 struct clk_hw_omap *clk;
3593#endif
3594 3584
3595 if (!oh) 3585 if (!oh)
3596 return NULL; 3586 return NULL;
@@ -3607,12 +3597,8 @@ struct powerdomain *omap_hwmod_get_pwrdm(struct omap_hwmod *oh)
3607 c = oi->_clk; 3597 c = oi->_clk;
3608 } 3598 }
3609 3599
3610#ifdef CONFIG_COMMON_CLK
3611 clk = to_clk_hw_omap(__clk_get_hw(c)); 3600 clk = to_clk_hw_omap(__clk_get_hw(c));
3612 clkdm = clk->clkdm; 3601 clkdm = clk->clkdm;
3613#else
3614 clkdm = c->clkdm;
3615#endif
3616 if (!clkdm) 3602 if (!clkdm)
3617 return NULL; 3603 return NULL;
3618 3604