aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/qcom/clk-pll.c
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2014-11-28 13:01:38 -0500
committerStephen Boyd <sboyd@codeaurora.org>2015-03-27 01:43:47 -0400
commitd41bd923d3e624462c9d7a2fcff5b62eee5e7f7f (patch)
tree2ef4e5980e60e3bba5c944f2e6bfc02db83ceafc /drivers/clk/qcom/clk-pll.c
parentb3261d768bcdd4b368179ed85becf38c95461848 (diff)
clk: qcom: fix simple_return.cocci warnings
drivers/clk/qcom/clk-pll.c:74:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/qcom/clk-pll.c')
-rw-r--r--drivers/clk/qcom/clk-pll.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/clk/qcom/clk-pll.c b/drivers/clk/qcom/clk-pll.c
index b4325f65a1bf..245d5063a385 100644
--- a/drivers/clk/qcom/clk-pll.c
+++ b/drivers/clk/qcom/clk-pll.c
@@ -71,12 +71,8 @@ static int clk_pll_enable(struct clk_hw *hw)
71 udelay(50); 71 udelay(50);
72 72
73 /* Enable PLL output. */ 73 /* Enable PLL output. */
74 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_OUTCTRL, 74 return regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_OUTCTRL,
75 PLL_OUTCTRL); 75 PLL_OUTCTRL);
76 if (ret)
77 return ret;
78
79 return 0;
80} 76}
81 77
82static void clk_pll_disable(struct clk_hw *hw) 78static void clk_pll_disable(struct clk_hw *hw)