diff options
author | Chen-Yu Tsai <wens@csie.org> | 2019-05-03 06:21:56 +0300 |
---|---|---|
committer | Chen-Yu Tsai <wens@csie.org> | 2019-06-18 14:39:00 +0300 |
commit | 930944833550ff36c0154d8e18a410d158df26d7 (patch) | |
tree | 86bd56517cd36d9065f2fef0a5a9fea0ab90a786 /drivers/clk/sunxi-ng/ccu_common.c | |
parent | 8b13a48b891c7c855e9f3a401d91391a946f4ca7 (diff) | |
download | linux-930944833550ff36c0154d8e18a410d158df26d7.tar.xz |
clk: sunxi-ng: switch to of_clk_hw_register() for registering clks
Commit 89a5ddcc799d ("clk: Add of_clk_hw_register() API for early clk
drivers") introduces a new API for registering clks, which allows the
user to directly specify a device node, even if there is no struct
device attached to it. The device node is used for local DT clock-names
matching.
Switch to of_clk_hw_register() so that local DT clock-names matching
works.
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu_common.c')
-rw-r--r-- | drivers/clk/sunxi-ng/ccu_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi-ng/ccu_common.c b/drivers/clk/sunxi-ng/ccu_common.c index 40aac316128f..f1db29854934 100644 --- a/drivers/clk/sunxi-ng/ccu_common.c +++ b/drivers/clk/sunxi-ng/ccu_common.c @@ -110,7 +110,7 @@ int sunxi_ccu_probe(struct device_node *node, void __iomem *reg, if (!hw) continue; - ret = clk_hw_register(NULL, hw); + ret = of_clk_hw_register(node, hw); if (ret) { pr_err("Couldn't register clock %d - %s\n", i, clk_hw_get_name(hw)); |