diff options
author | Rajendra Nayak <rnayak@ti.com> | 2012-04-27 06:29:32 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-11-12 21:10:18 -0500 |
commit | ed1ebc4948fdfe4c68865e5543b4a68e5a55973b (patch) | |
tree | 6d781e2833bdd91472f3a86e38eb4a8ae4e2b379 /arch/arm/mach-omap2/pm24xx.c | |
parent | b4777a21381fd1f87be8c606a616b7f97f485d2b (diff) |
ARM: OMAP2: clock: Convert to common clk
Convert all OMAP2 specific platform files to use COMMON clk
and keep all the changes under the CONFIG_COMMON_CLK macro check
so it does not break any existing code. At a later point switch
to COMMON clk and get rid of all old/legacy code.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Mike Turquette <mturquette@ti.com>
[paul@pwsan.com: updated to apply]
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, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c index 83815ddc4786..87ae36c7e155 100644 --- a/arch/arm/mach-omap2/pm24xx.c +++ b/arch/arm/mach-omap2/pm24xx.c | |||
@@ -25,7 +25,11 @@ | |||
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> | ||
30 | #else | ||
28 | #include <linux/clk.h> | 31 | #include <linux/clk.h> |
32 | #endif | ||
29 | #include <linux/irq.h> | 33 | #include <linux/irq.h> |
30 | #include <linux/time.h> | 34 | #include <linux/time.h> |
31 | #include <linux/gpio.h> | 35 | #include <linux/gpio.h> |
@@ -202,7 +206,11 @@ static int omap2_can_sleep(void) | |||
202 | { | 206 | { |
203 | if (omap2_fclks_active()) | 207 | if (omap2_fclks_active()) |
204 | return 0; | 208 | return 0; |
209 | #ifdef CONFIG_COMMON_CLK | ||
210 | if (__clk_is_enabled(osc_ck)) | ||
211 | #else | ||
205 | if (osc_ck->usecount > 1) | 212 | if (osc_ck->usecount > 1) |
213 | #endif | ||
206 | return 0; | 214 | return 0; |
207 | if (omap_dma_running()) | 215 | if (omap_dma_running()) |
208 | return 0; | 216 | return 0; |