summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-11-14 21:54:06 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-14 21:54:06 -0800
commitc93c8b05cc380a3cdf60d9af0d5d940244a0c8a4 (patch)
tree53533b3d75152238490a3cd13bcfcc9449e9e1dc
parent5587de21d7538e14fd057b4e1825963b82fb8d1d (diff)
parenta8cd6932aa571f706b1e744086711124035ba343 (diff)
Merge "clk: qcom: Remove initial configuration from PLL enable function"
-rw-r--r--drivers/clk/qcom/clk-alpha-pll.c8
-rw-r--r--drivers/clk/qcom/clk-alpha-pll.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c
index 1501c5da4a6c..085b9acfb9d5 100644
--- a/drivers/clk/qcom/clk-alpha-pll.c
+++ b/drivers/clk/qcom/clk-alpha-pll.c
@@ -221,8 +221,6 @@ void clk_alpha_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,
if (pll->flags & SUPPORTS_FSM_MODE)
clk_alpha_set_fsm_mode(pll);
-
- pll->inited = true;
}
static int clk_alpha_pll_hwfsm_enable(struct clk_hw *hw)
@@ -288,12 +286,6 @@ static int clk_alpha_pll_enable(struct clk_hw *hw)
u32 val, mask, off;
off = pll->offset;
-
- if (unlikely(!pll->inited)) {
- clk_alpha_pll_configure(pll, pll->clkr.regmap,
- pll->config);
- }
-
mask = PLL_OUTCTRL | PLL_RESET_N | PLL_BYPASSNL;
ret = regmap_read(pll->clkr.regmap, off + PLL_MODE, &val);
if (ret)
diff --git a/drivers/clk/qcom/clk-alpha-pll.h b/drivers/clk/qcom/clk-alpha-pll.h
index 425cf3afef9e..9b1d3ee61cac 100644
--- a/drivers/clk/qcom/clk-alpha-pll.h
+++ b/drivers/clk/qcom/clk-alpha-pll.h
@@ -39,7 +39,6 @@ struct pll_vco {
struct clk_alpha_pll {
u32 offset;
struct pll_config *config;
- bool inited;
const struct pll_vco *vco_table;
size_t num_vco;