kernel_samsung_a53x/drivers/clk/rockchip
Sebastian Reichel 4f6362ca1c clk: rockchip: fix error for unknown clocks
commit 12fd64babaca4dc09d072f63eda76ba44119816a upstream.

There is a clk == NULL check after the switch to check for
unsupported clk types. Since clk is re-assigned in a loop,
this check is useless right now for anything but the first
round. Let's fix this up by assigning clk = NULL in the
loop before the switch statement.

Fixes: a245fecbb806 ("clk: rockchip: add basic infrastructure for clock branches")
Cc: stable@vger.kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
[added fixes + stable-cc]
Link: https://lore.kernel.org/r/20240325193609.237182-6-sebastian.reichel@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:21:45 +01:00
..
clk-cpu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-ddr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-half-divider.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-inverter.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-mmc-phase.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-muxgrf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-pll.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-px30.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-rk3036.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-rk3128.c clk: rockchip: rk3128: Fix HCLK_OTG gate register 2024-11-18 12:12:16 +01:00
clk-rk3188.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-rk3228.c clk: rockchip: Set parent rate for DCLK_VOP clock on RK3228 2024-11-23 23:21:24 +01:00
clk-rk3288.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-rk3308.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-rk3328.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-rk3368.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-rk3399.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-rv1108.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk.c clk: rockchip: fix error for unknown clocks 2024-11-23 23:21:45 +01:00
clk.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
softrst.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00