Commit c1ea839c authored by Gabriel Fernandez's avatar Gabriel Fernandez Committed by Stephen Boyd

clk: stm32h7: fix test of clock config

fix test of composite clock config (bad copy / past)
Signed-off-by: default avatarGabriel Fernandez <gabriel.fernandez@st.com>
Fixes: 3e4d618b ("clk: stm32h7: Add stm32h743 clock driver")
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent c82a2cb8
...@@ -384,7 +384,7 @@ static void get_cfg_composite_div(const struct composite_clk_gcfg *gcfg, ...@@ -384,7 +384,7 @@ static void get_cfg_composite_div(const struct composite_clk_gcfg *gcfg,
mux_ops = div_ops = gate_ops = NULL; mux_ops = div_ops = gate_ops = NULL;
mux_hw = div_hw = gate_hw = NULL; mux_hw = div_hw = gate_hw = NULL;
if (gcfg->mux && gcfg->mux) { if (gcfg->mux && cfg->mux) {
mux = _get_cmux(base + cfg->mux->offset, mux = _get_cmux(base + cfg->mux->offset,
cfg->mux->shift, cfg->mux->shift,
cfg->mux->width, cfg->mux->width,
...@@ -410,7 +410,7 @@ static void get_cfg_composite_div(const struct composite_clk_gcfg *gcfg, ...@@ -410,7 +410,7 @@ static void get_cfg_composite_div(const struct composite_clk_gcfg *gcfg,
} }
} }
if (gcfg->gate && gcfg->gate) { if (gcfg->gate && cfg->gate) {
gate = _get_cgate(base + cfg->gate->offset, gate = _get_cgate(base + cfg->gate->offset,
cfg->gate->bit_idx, cfg->gate->bit_idx,
gcfg->gate->flags, lock); gcfg->gate->flags, lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment