clk: rockchip: rk3588: fix CLK_NR_CLKS usage
authorSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 26 Jan 2024 18:18:22 +0000 (19:18 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 27 Feb 2024 16:04:58 +0000 (17:04 +0100)
commit2dc66a5ab2c6fb532fbb16107ee7efcb0effbfa5
treed297a89151b6315f3282f92e202d3e5ed7e5949b
parent6613476e225e090cc9aad49be7fa504e290dd33d
clk: rockchip: rk3588: fix CLK_NR_CLKS usage

CLK_NR_CLKS is not part of the DT bindings and needs to be removed
from it, just like it recently happened for other platforms. This
takes care of it by introducing a new function identifying the
maximum used clock ID at runtime.

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