msm: clock-local: Implement rcg_clk_reset
Instead of duplicating the simple soc_clk_reset() function for
each SoC's rcg clock, implement a generic rcg clock reset
function. 7x30 is different, but that's ok because we already
have a separate reset function for 7x30.
Change-Id: Ib9e63d5f7361ed0e89392c5773d7e30f62e153a8
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-local.c b/arch/arm/mach-msm/clock-local.c
index f8d84be..fb76f07 100644
--- a/arch/arm/mach-msm/clock-local.c
+++ b/arch/arm/mach-msm/clock-local.c
@@ -896,6 +896,11 @@
return branch_reset(&to_branch_clk(clk)->b, action);
}
+int rcg_clk_reset(struct clk *clk, enum clk_reset_action action)
+{
+ return branch_reset(&to_rcg_clk(clk)->b, action);
+}
+
static int cdiv_clk_enable(struct clk *c)
{
unsigned long flags;