CLK_MUX_HIWORD_MASK is a flag of the mux clock, not a generic clock flag. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/clk/clk-mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index a4743c51b0..7977a76db9 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -34,7 +34,7 @@ static int clk_mux_set_parent(struct clk *clk, u8 idx) val &= ~(((1 << m->width) - 1) << m->shift); val |= idx << m->shift; - if (clk->flags & CLK_MUX_HIWORD_MASK) + if (m->flags & CLK_MUX_HIWORD_MASK) val |= ((1 << m->width) - 1) << (m->shift + 16); writel(val, m->reg); -- 2.29.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox