Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5fb2ce11 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde Committed by Olof Johansson
Browse files

ARM: Kirkwood: clk_register_gate_fn: add fn assignment



In commit:
    98d9986c ARM: Kirkwood: Replace clock gating
the kirkwood clock gating has been reworked. A custom variant of
clock gating, that calls a custom function before gating the clock
off, has been introduced. However in clk_register_gate_fn() this
custom function "fn" is never assigned.

This patch adds the missing fn assignment.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@blackshift.org>
Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Acked-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent b5e12229
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -159,6 +159,7 @@ static struct clk __init *clk_register_gate_fn(struct device *dev,
	gate_fn->gate.flags = clk_gate_flags;
	gate_fn->gate.lock = lock;
	gate_fn->gate.hw.init = &init;
	gate_fn->fn = fn;

	/* ops is the gate ops, but with our disable function */
	if (clk_gate_fn_ops.disable != clk_gate_fn_disable) {