diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2011-02-23 12:37:41 -0500 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2011-02-28 15:40:05 -0500 |
commit | 2a52220c89e02423aa23e6b9fb6dc0c706465a82 (patch) | |
tree | 39a6e46c02ff983e1228c691cf06e3a7405db90e /arch/arm/mach-msm/clock-debug.c | |
parent | 0693a317b609a5d31d29e26c4f28ea079d5477f4 (diff) |
msm: clock: Remove references to clk_ops_pcom
Not all devices use proc_comm and determining if a clock is local
vs. remote is fragile when done by comparing clk_ops pointers.
Instead, implement an is_local() function for all clk_ops to
determine if the clock is local. Doing this allows us to remove
the last references to clk_ops_pcom from clock.c and compile it
for targets with CONFIG_MSM_PROC_COMM=n.
We don't need to set the clk_ops at runtime until 7x30 local
clock detection comes in. Right now it's just complicating things
so just set the ops pointer statically.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/clock-debug.c')
-rw-r--r-- | arch/arm/mach-msm/clock-debug.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-msm/clock-debug.c b/arch/arm/mach-msm/clock-debug.c index b67b9e82ece6..4886404d42f5 100644 --- a/arch/arm/mach-msm/clock-debug.c +++ b/arch/arm/mach-msm/clock-debug.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/debugfs.h> | 19 | #include <linux/debugfs.h> |
20 | #include <linux/clk.h> | 20 | #include <linux/clk.h> |
21 | #include "clock.h" | 21 | #include "clock.h" |
22 | #include "clock-pcom.h" | ||
23 | 22 | ||
24 | static int clock_debug_rate_set(void *data, u64 val) | 23 | static int clock_debug_rate_set(void *data, u64 val) |
25 | { | 24 | { |
@@ -79,7 +78,7 @@ static int clock_debug_local_get(void *data, u64 *val) | |||
79 | { | 78 | { |
80 | struct clk *clock = data; | 79 | struct clk *clock = data; |
81 | 80 | ||
82 | *val = clock->ops != &clk_ops_pcom; | 81 | *val = clock->ops->is_local(clock->id); |
83 | 82 | ||
84 | return 0; | 83 | return 0; |
85 | } | 84 | } |