diff options
| author | Yao Zi <[email protected]> | 2024-09-12 13:32:05 +0000 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2024-10-09 16:06:51 -0700 |
| commit | ad1081a0da2744141d12e94ff816ac91feb871ca (patch) | |
| tree | fce95af62a7592c1ed047d8578fc441bd6628907 | |
| parent | 9852d85ec9d492ebef56dc5f229416c925758edc (diff) | |
clk: rockchip: fix finding of maximum clock ID
If an ID of a branch's child is greater than current maximum, we should
set new maximum to the child's ID, instead of its parent's.
Fixes: 2dc66a5ab2c6 ("clk: rockchip: rk3588: fix CLK_NR_CLKS usage")
Signed-off-by: Yao Zi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Sebastian Reichel <[email protected]>
Reviewed-by: Heiko Stuebner <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
| -rw-r--r-- | drivers/clk/rockchip/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c index 2fa7253c73b2..88629a9abc9c 100644 --- a/drivers/clk/rockchip/clk.c +++ b/drivers/clk/rockchip/clk.c @@ -439,7 +439,7 @@ unsigned long rockchip_clk_find_max_clk_id(struct rockchip_clk_branch *list, if (list->id > max) max = list->id; if (list->child && list->child->id > max) - max = list->id; + max = list->child->id; } return max; |