Skip to content

Commit b5881e8

Browse files
abelvesaShawn Guo
authored andcommitted
clk: imx: clk-gate2: Pass the device to the register function
The device needs to be passed on to the clk_hw_register. Fixes: 1f9aec9 ("clk: imx: clk-gate2: Switch to clk_hw based API") Signed-off-by: Abel Vesa <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 4ae9afb commit b5881e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/imx/clk-gate2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ struct clk_hw *clk_hw_register_gate2(struct device *dev, const char *name,
154154
gate->hw.init = &init;
155155
hw = &gate->hw;
156156

157-
ret = clk_hw_register(NULL, hw);
157+
ret = clk_hw_register(dev, hw);
158158
if (ret) {
159159
kfree(gate);
160160
return ERR_PTR(ret);

0 commit comments

Comments
 (0)