clk: qcom: clk-rpm: Fix clk_hw references
authorGeorgi Djakov <georgi.djakov@linaro.org>
Wed, 23 Nov 2016 14:52:49 +0000 (16:52 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 23 Nov 2016 19:12:48 +0000 (11:12 -0800)
commitc260524aba53b57f72b5446ed553080df30b4d09
treef1b754b0021cd12052017504a4a9db0587685c5a
parent81b7667aace061c6edd57d2fadd70374ceda2c81
clk: qcom: clk-rpm: Fix clk_hw references

Fix the clk_hw references to the actual clocks and add a xlate function
to return the hw pointers from the already existing static array.

Reported-by: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/qcom/clk-rpm.c