aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2013-06-17 13:43:14 -0400
committerDavid Brown <davidb@codeaurora.org>2013-06-24 16:06:42 -0400
commit85a7df1f858c3fac274b4f3bcccbe7790e24a04c (patch)
tree8e35608aa46b97499fe89e363e42d0737a981f40 /arch/arm/mach-msm
parent8d21415348c0961eedd78e1767095f61d870c8fc (diff)
ARM: msm: Remove custom clk_set_flags() API
Nobody is using this API upstream and it's just contributing cruft. Remove it so the MSM clock API is closer to the generic struct clock API. Acked-by: Saravana Kannan <skannan@codeaurora.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm')
-rw-r--r--arch/arm/mach-msm/clock-pcom.c10
-rw-r--r--arch/arm/mach-msm/clock.c8
-rw-r--r--arch/arm/mach-msm/clock.h6
-rw-r--r--arch/arm/mach-msm/include/mach/clk.h3
4 files changed, 0 insertions, 27 deletions
diff --git a/arch/arm/mach-msm/clock-pcom.c b/arch/arm/mach-msm/clock-pcom.c
index a52c970df157..bb75f8e75ce2 100644
--- a/arch/arm/mach-msm/clock-pcom.c
+++ b/arch/arm/mach-msm/clock-pcom.c
@@ -85,15 +85,6 @@ static int pc_clk_set_max_rate(unsigned id, unsigned rate)
85 return (int)id < 0 ? -EINVAL : 0; 85 return (int)id < 0 ? -EINVAL : 0;
86} 86}
87 87
88static int pc_clk_set_flags(unsigned id, unsigned flags)
89{
90 int rc = msm_proc_comm(PCOM_CLKCTL_RPC_SET_FLAGS, &id, &flags);
91 if (rc < 0)
92 return rc;
93 else
94 return (int)id < 0 ? -EINVAL : 0;
95}
96
97static unsigned pc_clk_get_rate(unsigned id) 88static unsigned pc_clk_get_rate(unsigned id)
98{ 89{
99 if (msm_proc_comm(PCOM_CLKCTL_RPC_RATE, &id, NULL)) 90 if (msm_proc_comm(PCOM_CLKCTL_RPC_RATE, &id, NULL))
@@ -130,7 +121,6 @@ struct clk_ops clk_ops_pcom = {
130 .set_rate = pc_clk_set_rate, 121 .set_rate = pc_clk_set_rate,
131 .set_min_rate = pc_clk_set_min_rate, 122 .set_min_rate = pc_clk_set_min_rate,
132 .set_max_rate = pc_clk_set_max_rate, 123 .set_max_rate = pc_clk_set_max_rate,
133 .set_flags = pc_clk_set_flags,
134 .get_rate = pc_clk_get_rate, 124 .get_rate = pc_clk_get_rate,
135 .is_enabled = pc_clk_is_enabled, 125 .is_enabled = pc_clk_is_enabled,
136 .round_rate = pc_clk_round_rate, 126 .round_rate = pc_clk_round_rate,
diff --git a/arch/arm/mach-msm/clock.c b/arch/arm/mach-msm/clock.c
index d9145dfc2a3b..5fac2dfae980 100644
--- a/arch/arm/mach-msm/clock.c
+++ b/arch/arm/mach-msm/clock.c
@@ -121,14 +121,6 @@ struct clk *clk_get_parent(struct clk *clk)
121} 121}
122EXPORT_SYMBOL(clk_get_parent); 122EXPORT_SYMBOL(clk_get_parent);
123 123
124int clk_set_flags(struct clk *clk, unsigned long flags)
125{
126 if (clk == NULL || IS_ERR(clk))
127 return -EINVAL;
128 return clk->ops->set_flags(clk->id, flags);
129}
130EXPORT_SYMBOL(clk_set_flags);
131
132/* EBI1 is the only shared clock that several clients want to vote on as of 124/* EBI1 is the only shared clock that several clients want to vote on as of
133 * this commit. If this changes in the future, then it might be better to 125 * this commit. If this changes in the future, then it might be better to
134 * make clk_min_rate handle the voting or make ebi1_clk_set_min_rate more 126 * make clk_min_rate handle the voting or make ebi1_clk_set_min_rate more
diff --git a/arch/arm/mach-msm/clock.h b/arch/arm/mach-msm/clock.h
index 2c007f606d29..a25ff58c2f3f 100644
--- a/arch/arm/mach-msm/clock.h
+++ b/arch/arm/mach-msm/clock.h
@@ -21,11 +21,6 @@
21#include <linux/list.h> 21#include <linux/list.h>
22#include <mach/clk.h> 22#include <mach/clk.h>
23 23
24#define CLKFLAG_INVERT 0x00000001
25#define CLKFLAG_NOINVERT 0x00000002
26#define CLKFLAG_NONEST 0x00000004
27#define CLKFLAG_NORESET 0x00000008
28
29#define CLK_FIRST_AVAILABLE_FLAG 0x00000100 24#define CLK_FIRST_AVAILABLE_FLAG 0x00000100
30#define CLKFLAG_AUTO_OFF 0x00000200 25#define CLKFLAG_AUTO_OFF 0x00000200
31#define CLKFLAG_MIN 0x00000400 26#define CLKFLAG_MIN 0x00000400
@@ -39,7 +34,6 @@ struct clk_ops {
39 int (*set_rate)(unsigned id, unsigned rate); 34 int (*set_rate)(unsigned id, unsigned rate);
40 int (*set_min_rate)(unsigned id, unsigned rate); 35 int (*set_min_rate)(unsigned id, unsigned rate);
41 int (*set_max_rate)(unsigned id, unsigned rate); 36 int (*set_max_rate)(unsigned id, unsigned rate);
42 int (*set_flags)(unsigned id, unsigned flags);
43 unsigned (*get_rate)(unsigned id); 37 unsigned (*get_rate)(unsigned id);
44 unsigned (*is_enabled)(unsigned id); 38 unsigned (*is_enabled)(unsigned id);
45 long (*round_rate)(unsigned id, unsigned rate); 39 long (*round_rate)(unsigned id, unsigned rate);
diff --git a/arch/arm/mach-msm/include/mach/clk.h b/arch/arm/mach-msm/include/mach/clk.h
index e8d38428d813..5f1c37d4f223 100644
--- a/arch/arm/mach-msm/include/mach/clk.h
+++ b/arch/arm/mach-msm/include/mach/clk.h
@@ -34,7 +34,4 @@ int clk_set_max_rate(struct clk *clk, unsigned long rate);
34/* Assert/Deassert reset to a hardware block associated with a clock */ 34/* Assert/Deassert reset to a hardware block associated with a clock */
35int clk_reset(struct clk *clk, enum clk_reset_action action); 35int clk_reset(struct clk *clk, enum clk_reset_action action);
36 36
37/* Set clock-specific configuration parameters */
38int clk_set_flags(struct clk *clk, unsigned long flags);
39
40#endif 37#endif