clk: rockchip: rk3588: drop unused code
authorSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 25 Mar 2024 19:33:32 +0000 (20:33 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 30 Aug 2024 14:59:24 +0000 (16:59 +0200)
commit2e7b3daa8cb1ebd17e6a7f417ef5e6553203035c
tree72381dead685242b485f1fadfc53d9ddbddd4d17
parentcc40f5baa91bb7b031f5622e11a4e443cb771527
clk: rockchip: rk3588: drop unused code

All clocks are registered early using CLK_OF_DECLARE(), which marks
the DT node as processed. For the processed DT node the probe routine
is never called. Thus this whole code is never executed. This could
be "fixed" by using CLK_OF_DECLARE_DRIVER, which avoids marking the
DT node as processed. But then the probe routine would re-register
all the clocks by calling rk3588_clk_init() again.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20240325193609.237182-2-sebastian.reichel@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-rk3588.c