Searched hist:bd588d52562ac5c2d7dd43cf4420d112d9e9c2d5 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/clk/rockchip/ |
H A D | clk.c | diff bd588d52562ac5c2d7dd43cf4420d112d9e9c2d5 Mon Mar 25 14:33:36 CDT 2024 Sebastian Reichel <sebastian.reichel@collabora.com> 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>
|