summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2017-06-26 21:29:48 -0500
committerJason Liu <jason.hui.liu@nxp.com>2017-11-03 02:36:57 +0800
commit59e5dadef7a1c0f2aefc811e188bcee1673b1ffd (patch)
tree26897e4f3ccf58379a2916b4d329ef67c59741d2 /arch
parentad8605422437f7c6bc39f479608b69a73b5d6312 (diff)
MLK-15288-2 imx8m: Fix build warning in clock
Fix the build warning below: arch/arm/cpu/armv8/imx8m/clock.c: In function ‘decode_frac_pll’: arch/arm/cpu/armv8/imx8m/clock.c:37:36: warning: variable ‘pll_newdiv’ set but not used [-Wunused-but-set-variable] u32 divr_val, divq_val, divf_val, pll_newdiv, divff, divfi; Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv8/imx8m/clock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv8/imx8m/clock.c b/arch/arm/cpu/armv8/imx8m/clock.c
index fd86cd7c90e..17debd6d957 100644
--- a/arch/arm/cpu/armv8/imx8m/clock.c
+++ b/arch/arm/cpu/armv8/imx8m/clock.c
@@ -34,7 +34,7 @@ u32 decode_frac_pll(enum clk_root_src frac_pll)
{
u32 pll_cfg0, pll_cfg1, pllout;
u32 pll_refclk_sel, pll_refclk;
- u32 divr_val, divq_val, divf_val, pll_newdiv, divff, divfi;
+ u32 divr_val, divq_val, divf_val, divff, divfi;
u32 pllout_div_shift, pllout_div_mask, pllout_div;
switch (frac_pll) {
@@ -77,7 +77,6 @@ u32 decode_frac_pll(enum clk_root_src frac_pll)
divr_val = (pll_cfg0 & FRAC_PLL_REFCLK_DIV_VAL_MASK) >>
FRAC_PLL_REFCLK_DIV_VAL_SHIFT;
divq_val = pll_cfg0 & FRAC_PLL_OUTPUT_DIV_VAL_MASK;
- pll_newdiv = pll_cfg0 & FRAC_PLL_NEWDIV_VAL_MASK;
divff = (pll_cfg1 & FRAC_PLL_FRAC_DIV_CTL_MASK) >>
FRAC_PLL_FRAC_DIV_CTL_SHIFT;