diff options
author | Rajendra Nayak <rnayak@ti.com> | 2012-04-27 07:25:59 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-11-12 21:18:51 -0500 |
commit | d037e100d138fb522ed0ea3e3a915bd8e0e36f63 (patch) | |
tree | 32a0dc720f4026dcba521b5b579933db59064cb0 /arch/arm/mach-omap2/pm24xx.c | |
parent | 455db9c9b23224f939723e9ded22b7a9a78fb57a (diff) |
ARM: OMAP2: clock: Cleanup !CONFIG_COMMON_CLK parts
Clean all #ifdef's added to OMAP2 clock code to make it COMMON clk
ready, not that CONFIG_COMMON_CLK is enabled.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
[paul@pwsan.com: also drop CONFIG_COMMON_CLK tests around APLL recalc_rate
functions]
Signed-off-by: Mike Turquette <mturquette@ti.com>
[paul@pwsan.com: remove some ifdefs in mach-omap2/io.c]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm24xx.c')
-rw-r--r-- | arch/arm/mach-omap2/pm24xx.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c index 87ae36c7e155..3d35bd64487c 100644 --- a/arch/arm/mach-omap2/pm24xx.c +++ b/arch/arm/mach-omap2/pm24xx.c | |||
@@ -25,11 +25,7 @@ | |||
25 | #include <linux/sysfs.h> | 25 | #include <linux/sysfs.h> |
26 | #include <linux/module.h> | 26 | #include <linux/module.h> |
27 | #include <linux/delay.h> | 27 | #include <linux/delay.h> |
28 | #ifdef CONFIG_COMMON_CLK | ||
29 | #include <linux/clk-provider.h> | 28 | #include <linux/clk-provider.h> |
30 | #else | ||
31 | #include <linux/clk.h> | ||
32 | #endif | ||
33 | #include <linux/irq.h> | 29 | #include <linux/irq.h> |
34 | #include <linux/time.h> | 30 | #include <linux/time.h> |
35 | #include <linux/gpio.h> | 31 | #include <linux/gpio.h> |
@@ -206,11 +202,7 @@ static int omap2_can_sleep(void) | |||
206 | { | 202 | { |
207 | if (omap2_fclks_active()) | 203 | if (omap2_fclks_active()) |
208 | return 0; | 204 | return 0; |
209 | #ifdef CONFIG_COMMON_CLK | ||
210 | if (__clk_is_enabled(osc_ck)) | 205 | if (__clk_is_enabled(osc_ck)) |
211 | #else | ||
212 | if (osc_ck->usecount > 1) | ||
213 | #endif | ||
214 | return 0; | 206 | return 0; |
215 | if (omap_dma_running()) | 207 | if (omap_dma_running()) |
216 | return 0; | 208 | return 0; |