From: Abel Vesa Date: Fri, 13 Mar 2020 16:10:19 +0000 (+0200) Subject: clk: imx: clk-gate2: Pass the device to the register function X-Git-Tag: v5.7-rc1~84^2^5~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5881e8019e0d39c43a2da56c4ae616a50615e00;p=thirdparty%2Fkernel%2Flinux.git clk: imx: clk-gate2: Pass the device to the register function The device needs to be passed on to the clk_hw_register. Fixes: 1f9aec9662566189 ("clk: imx: clk-gate2: Switch to clk_hw based API") Signed-off-by: Abel Vesa Reviewed-by: Stephen Boyd Signed-off-by: Shawn Guo --- diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index 72a7698be7915..ce0060e8873eb 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c @@ -154,7 +154,7 @@ struct clk_hw *clk_hw_register_gate2(struct device *dev, const char *name, gate->hw.init = &init; hw = &gate->hw; - ret = clk_hw_register(NULL, hw); + ret = clk_hw_register(dev, hw); if (ret) { kfree(gate); return ERR_PTR(ret);