msm: clock-local2: Fix local_vote_clk_reset to use right to_*_clk macro
The local_vote_clk_reset function needs to use the
to_local_vote_clk macro and not the to_branch_clk
macro.
Change-Id: Ibceeaf715cb979240e6ba03c78a9a670b59d7f8f
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-local2.c b/arch/arm/mach-msm/clock-local2.c
index e8e88d7..355a6d3 100644
--- a/arch/arm/mach-msm/clock-local2.c
+++ b/arch/arm/mach-msm/clock-local2.c
@@ -503,7 +503,7 @@
*/
static int local_vote_clk_reset(struct clk *c, enum clk_reset_action action)
{
- struct branch_clk *vclk = to_branch_clk(c);
+ struct local_vote_clk *vclk = to_local_vote_clk(c);
return __branch_clk_reset(BCR_REG(vclk), action);
}