]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: mediatek: mt2701-aud: fix conversion to mtk_clk_simple_probe
authorDaniel Golle <daniel@makrotopia.org>
Sun, 15 Dec 2024 22:14:11 +0000 (22:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2025 09:05:11 +0000 (10:05 +0100)
commitb7b72c7f93fcc4c278685d0ad6d6a8623ad6a2f0
treed462879748820795950e4314cb61e1e08d2022bd
parent234438b46322840a9d6d097e6d15fbcf786e9db9
clk: mediatek: mt2701-aud: fix conversion to mtk_clk_simple_probe

commit 5fba40be5fbad563914e3ce9d5129a6baaea1ff5 upstream.

Some of the audio subsystem clocks defined in clk-mt2701.h aren't
actually used by the driver. This broke conversion to
mtk_clk_simple_probe which expects that the highest possible clk id is
defined by the ARRAY_SIZE.

Add additional dummy clocks to fill the gaps and remain compatible with
the existing DT bindings.

Fixes: 0f69a423c458 ("clk: mediatek: Switch to mtk_clk_simple_probe() where possible")
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://lore.kernel.org/r/a07584d803af57b9ce4b5df5e122c09bf5a56ac9.1734300668.git.daniel@makrotopia.org
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/mediatek/clk-mt2701-aud.c