Commit c4a1ea2c authored by Rajendra Nayak's avatar Rajendra Nayak Committed by Paul Walmsley

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: default avatarRajendra Nayak <rnayak@ti.com>
Signed-off-by: default avatarMike Turquette <mturquette@ti.com>
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
parent f7f73aab
...@@ -130,11 +130,7 @@ ...@@ -130,11 +130,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/io.h> #include <linux/io.h>
#ifdef CONFIG_COMMON_CLK
#include <linux/clk-provider.h> #include <linux/clk-provider.h>
#else
#include <linux/clk.h>
#endif
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/list.h> #include <linux/list.h>
...@@ -620,17 +616,13 @@ static int _disable_wakeup(struct omap_hwmod *oh, u32 *v) ...@@ -620,17 +616,13 @@ static int _disable_wakeup(struct omap_hwmod *oh, u32 *v)
static struct clockdomain *_get_clkdm(struct omap_hwmod *oh) static struct clockdomain *_get_clkdm(struct omap_hwmod *oh)
{ {
struct clk_hw_omap *clk;
if (oh->clkdm) { if (oh->clkdm) {
return oh->clkdm; return oh->clkdm;
} else if (oh->_clk) { } else if (oh->_clk) {
#ifdef CONFIG_COMMON_CLK
struct clk_hw_omap *clk;
clk = to_clk_hw_omap(__clk_get_hw(oh->_clk)); clk = to_clk_hw_omap(__clk_get_hw(oh->_clk));
return clk->clkdm; return clk->clkdm;
#else
return oh->_clk->clkdm;
#endif
} }
return NULL; return NULL;
} }
...@@ -3588,9 +3580,7 @@ struct powerdomain *omap_hwmod_get_pwrdm(struct omap_hwmod *oh) ...@@ -3588,9 +3580,7 @@ struct powerdomain *omap_hwmod_get_pwrdm(struct omap_hwmod *oh)
struct clk *c; struct clk *c;
struct omap_hwmod_ocp_if *oi; struct omap_hwmod_ocp_if *oi;
struct clockdomain *clkdm; struct clockdomain *clkdm;
#ifdef CONFIG_COMMON_CLK
struct clk_hw_omap *clk; struct clk_hw_omap *clk;
#endif
if (!oh) if (!oh)
return NULL; return NULL;
...@@ -3607,12 +3597,8 @@ struct powerdomain *omap_hwmod_get_pwrdm(struct omap_hwmod *oh) ...@@ -3607,12 +3597,8 @@ struct powerdomain *omap_hwmod_get_pwrdm(struct omap_hwmod *oh)
c = oi->_clk; c = oi->_clk;
} }
#ifdef CONFIG_COMMON_CLK
clk = to_clk_hw_omap(__clk_get_hw(c)); clk = to_clk_hw_omap(__clk_get_hw(c));
clkdm = clk->clkdm; clkdm = clk->clkdm;
#else
clkdm = c->clkdm;
#endif
if (!clkdm) if (!clkdm)
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment