clk: sunxi-ng: switch to of_clk_hw_register() for registering clks
authorChen-Yu Tsai <wens@csie.org>
Fri, 3 May 2019 03:21:56 +0000 (11:21 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 18 Jun 2019 11:39:00 +0000 (19:39 +0800)
commit930944833550ff36c0154d8e18a410d158df26d7
tree86bd56517cd36d9065f2fef0a5a9fea0ab90a786
parent8b13a48b891c7c855e9f3a401d91391a946f4ca7
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>
drivers/clk/sunxi-ng/ccu_common.c