diff options
author | Mike Turquette <mturquette@ti.com> | 2012-11-07 16:14:47 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-11-12 21:18:51 -0500 |
commit | f9ae32a74f0242cbef76d9baa10993d707be1714 (patch) | |
tree | 4c9e616bd4a72879405b94b039ee26ca812bed14 /arch/arm/mach-omap2/clockdomain.c | |
parent | f51e0f9862ccf8be71219763d51e7617b95faa10 (diff) |
ARM: OMAP2+: clock: Cleanup !CONFIG_COMMON_CLK parts
Clean all #ifdef's added to common clock code. This code is no longer
needed due to migration to the common clock framework.
Signed-off-by: Mike Turquette <mturquette@ti.com>
[paul@pwsan.com: clean up new ifdefs added in clockdomain.c]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clockdomain.c')
-rw-r--r-- | arch/arm/mach-omap2/clockdomain.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index be6fe356ddba..384873580b23 100644 --- a/arch/arm/mach-omap2/clockdomain.c +++ b/arch/arm/mach-omap2/clockdomain.c | |||
@@ -997,11 +997,9 @@ int clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk) | |||
997 | 997 | ||
998 | spin_lock_irqsave(&clkdm->lock, flags); | 998 | spin_lock_irqsave(&clkdm->lock, flags); |
999 | 999 | ||
1000 | #ifdef CONFIG_COMMON_CLK | ||
1001 | /* corner case: disabling unused clocks */ | 1000 | /* corner case: disabling unused clocks */ |
1002 | if (__clk_get_enable_count(clk) == 0) | 1001 | if (__clk_get_enable_count(clk) == 0) |
1003 | goto ccd_exit; | 1002 | goto ccd_exit; |
1004 | #endif | ||
1005 | 1003 | ||
1006 | if (atomic_read(&clkdm->usecount) == 0) { | 1004 | if (atomic_read(&clkdm->usecount) == 0) { |
1007 | spin_unlock_irqrestore(&clkdm->lock, flags); | 1005 | spin_unlock_irqrestore(&clkdm->lock, flags); |
@@ -1019,9 +1017,7 @@ int clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk) | |||
1019 | 1017 | ||
1020 | pr_debug("clockdomain: %s: disabled\n", clkdm->name); | 1018 | pr_debug("clockdomain: %s: disabled\n", clkdm->name); |
1021 | 1019 | ||
1022 | #ifdef CONFIG_COMMON_CLK | ||
1023 | ccd_exit: | 1020 | ccd_exit: |
1024 | #endif | ||
1025 | spin_unlock_irqrestore(&clkdm->lock, flags); | 1021 | spin_unlock_irqrestore(&clkdm->lock, flags); |
1026 | 1022 | ||
1027 | return 0; | 1023 | return 0; |