aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Fernandez <gabriel.fernandez@st.com>2017-10-11 02:57:24 -0400
committerStephen Boyd <sboyd@codeaurora.org>2017-11-14 20:06:49 -0500
commitc1ea839c41d049604a3f64ef72712d1c7c6639d0 (patch)
tree640cbf722df8e5c18a03aea6a2c5dbb715b39453
parentc82a2cb85973707671f1428b05f65243baf85da7 (diff)
clk: stm32h7: fix test of clock config
fix test of composite clock config (bad copy / past) Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com> Fixes: 3e4d618b0722 ("clk: stm32h7: Add stm32h743 clock driver") Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r--drivers/clk/clk-stm32h7.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-stm32h7.c b/drivers/clk/clk-stm32h7.c
index a94c3f56c590..61c3e40507d3 100644
--- a/drivers/clk/clk-stm32h7.c
+++ b/drivers/clk/clk-stm32h7.c
@@ -384,7 +384,7 @@ static void get_cfg_composite_div(const struct composite_clk_gcfg *gcfg,
384 mux_ops = div_ops = gate_ops = NULL; 384 mux_ops = div_ops = gate_ops = NULL;
385 mux_hw = div_hw = gate_hw = NULL; 385 mux_hw = div_hw = gate_hw = NULL;
386 386
387 if (gcfg->mux && gcfg->mux) { 387 if (gcfg->mux && cfg->mux) {
388 mux = _get_cmux(base + cfg->mux->offset, 388 mux = _get_cmux(base + cfg->mux->offset,
389 cfg->mux->shift, 389 cfg->mux->shift,
390 cfg->mux->width, 390 cfg->mux->width,
@@ -410,7 +410,7 @@ static void get_cfg_composite_div(const struct composite_clk_gcfg *gcfg,
410 } 410 }
411 } 411 }
412 412
413 if (gcfg->gate && gcfg->gate) { 413 if (gcfg->gate && cfg->gate) {
414 gate = _get_cgate(base + cfg->gate->offset, 414 gate = _get_cgate(base + cfg->gate->offset,
415 cfg->gate->bit_idx, 415 cfg->gate->bit_idx,
416 gcfg->gate->flags, lock); 416 gcfg->gate->flags, lock);