aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Coquelin <maxime.coquelin@st.com>2013-03-26 10:27:15 -0400
committerMike Turquette <mturquette@linaro.org>2013-03-27 11:35:33 -0400
commitb54891685162e09c4292cd38f067ca118604353c (patch)
treecdccfce42fa7ea0a83fc4de407ecf361b02fedd1
parenta35e89ad91c5379bef867eac1aff46a6187f7d74 (diff)
clk: ux500: Fix prcmu clocks registration
In clk_reg_prcmu(), clk->hw.init field is assigned with a reference local to clk_reg_prcmu() function. This patch replaces references to clk->hw.init with calls to __clk_get_name when called after clock registration. This patch applies on top of v3.9-rc4. Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Mike Turquette <mturquette@linaro.org> [mturquette@linaro.org: resolved trivial merge issues]
-rw-r--r--drivers/clk/ux500/clk-prcmu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clk/ux500/clk-prcmu.c b/drivers/clk/ux500/clk-prcmu.c
index 9d832567c6be..293a28854417 100644
--- a/drivers/clk/ux500/clk-prcmu.c
+++ b/drivers/clk/ux500/clk-prcmu.c
@@ -44,7 +44,7 @@ static void clk_prcmu_unprepare(struct clk_hw *hw)
44 struct clk_prcmu *clk = to_clk_prcmu(hw); 44 struct clk_prcmu *clk = to_clk_prcmu(hw);
45 if (prcmu_request_clock(clk->cg_sel, false)) 45 if (prcmu_request_clock(clk->cg_sel, false))
46 pr_err("clk_prcmu: %s failed to disable %s.\n", __func__, 46 pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
47 hw->init->name); 47 __clk_get_name(hw->clk));
48 else 48 else
49 clk->is_prepared = 0; 49 clk->is_prepared = 0;
50} 50}
@@ -106,7 +106,7 @@ static int clk_prcmu_opp_prepare(struct clk_hw *hw)
106 100); 106 100);
107 if (err) { 107 if (err) {
108 pr_err("clk_prcmu: %s fail req APE OPP for %s.\n", 108 pr_err("clk_prcmu: %s fail req APE OPP for %s.\n",
109 __func__, hw->init->name); 109 __func__, __clk_get_name(hw->clk));
110 return err; 110 return err;
111 } 111 }
112 clk->opp_requested = 1; 112 clk->opp_requested = 1;
@@ -130,7 +130,7 @@ static void clk_prcmu_opp_unprepare(struct clk_hw *hw)
130 130
131 if (prcmu_request_clock(clk->cg_sel, false)) { 131 if (prcmu_request_clock(clk->cg_sel, false)) {
132 pr_err("clk_prcmu: %s failed to disable %s.\n", __func__, 132 pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
133 hw->init->name); 133 __clk_get_name(hw->clk));
134 return; 134 return;
135 } 135 }
136 136
@@ -152,7 +152,7 @@ static int clk_prcmu_opp_volt_prepare(struct clk_hw *hw)
152 err = prcmu_request_ape_opp_100_voltage(true); 152 err = prcmu_request_ape_opp_100_voltage(true);
153 if (err) { 153 if (err) {
154 pr_err("clk_prcmu: %s fail req APE OPP VOLT for %s.\n", 154 pr_err("clk_prcmu: %s fail req APE OPP VOLT for %s.\n",
155 __func__, hw->init->name); 155 __func__, __clk_get_name(hw->clk));
156 return err; 156 return err;
157 } 157 }
158 clk->opp_requested = 1; 158 clk->opp_requested = 1;
@@ -175,7 +175,7 @@ static void clk_prcmu_opp_volt_unprepare(struct clk_hw *hw)
175 175
176 if (prcmu_request_clock(clk->cg_sel, false)) { 176 if (prcmu_request_clock(clk->cg_sel, false)) {
177 pr_err("clk_prcmu: %s failed to disable %s.\n", __func__, 177 pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
178 hw->init->name); 178 __clk_get_name(hw->clk));
179 return; 179 return;
180 } 180 }
181 181