]> www.infradead.org Git - users/jedix/linux-maple.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)
committerStephen Boyd <sboyd@kernel.org>
Tue, 17 Dec 2024 20:15:36 +0000 (12:15 -0800)
commit5fba40be5fbad563914e3ce9d5129a6baaea1ff5
treea381675ca256d4fc1d180e8622b4ce11db460646
parent7c8746126a4e256fcf1af9174ee7d92cc3f3bc31
clk: mediatek: mt2701-aud: fix conversion to mtk_clk_simple_probe

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>
drivers/clk/mediatek/clk-mt2701-aud.c