aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/clock-7x30.h
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2011-02-23 09:37:41 -0800
committerDavid Brown <davidb@codeaurora.org>2011-02-28 12:40:05 -0800
commit2a52220c89e02423aa23e6b9fb6dc0c706465a82 (patch)
tree39a6e46c02ff983e1228c691cf06e3a7405db90e /arch/arm/mach-msm/clock-7x30.h
parentmsm: headsmp.S: Fix section mismatch (diff)
downloadlinux-dev-2a52220c89e02423aa23e6b9fb6dc0c706465a82.tar.xz
linux-dev-2a52220c89e02423aa23e6b9fb6dc0c706465a82.zip
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-7x30.h')
-rw-r--r--arch/arm/mach-msm/clock-7x30.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/clock-7x30.h b/arch/arm/mach-msm/clock-7x30.h
index da8e1c6f774e..53622b3992b7 100644
--- a/arch/arm/mach-msm/clock-7x30.h
+++ b/arch/arm/mach-msm/clock-7x30.h
@@ -145,6 +145,7 @@ extern int internal_pwr_rail_ctl_auto(unsigned rail_id, bool enable);
.flags = clk_flags, \
.dev = clk_dev, \
.dbg_name = #l_id, \
+ .ops = &clk_ops_pcom, \
}
#endif