Skip to content

Commit 5fb2ce1

Browse files
marckleinebuddeolofj
authored andcommitted
ARM: Kirkwood: clk_register_gate_fn: add fn assignment
In commit: 98d9986 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 <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]> Tested-by: Andrew Lunn <[email protected]> Acked-by: Andrew Lunn <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
1 parent b5e1222 commit 5fb2ce1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/mach-kirkwood/common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ static struct clk __init *clk_register_gate_fn(struct device *dev,
159159
gate_fn->gate.flags = clk_gate_flags;
160160
gate_fn->gate.lock = lock;
161161
gate_fn->gate.hw.init = &init;
162+
gate_fn->fn = fn;
162163

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

0 commit comments

Comments
 (0)