diff options
author | Abel Vesa <abel.vesa@nxp.com> | 2020-03-13 18:10:19 +0200 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-03-16 09:38:30 +0800 |
commit | b5881e8019e0d39c43a2da56c4ae616a50615e00 (patch) | |
tree | 2e48a7fcefb91a2153a4dafd6cfaa3e634c4528a /drivers/clk/imx | |
parent | 4ae9afbaaeb9bd939ac2bb8d53828fdebca5ec1b (diff) | |
download | linux-stable-b5881e8019e0d39c43a2da56c4ae616a50615e00.tar.gz linux-stable-b5881e8019e0d39c43a2da56c4ae616a50615e00.tar.bz2 linux-stable-b5881e8019e0d39c43a2da56c4ae616a50615e00.zip |
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 <abel.vesa@nxp.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx')
-rw-r--r-- | drivers/clk/imx/clk-gate2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index 72a7698be791..ce0060e8873e 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); |