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

commit 7c8746126a4e256fcf1af9174ee7d92cc3f3bc31 upstream.

Commit 973d1607d936 ("clk: mediatek: mt2701: use mtk_clk_simple_probe to
simplify driver") broke DT bindings as the highest index was reduced by
1 because the id count starts from 1 and not from 0.

Fix this, like for other drivers which had the same issue, by adding a
dummy clk at index 0.

Fixes: 973d1607d936 ("clk: mediatek: mt2701: use mtk_clk_simple_probe to simplify driver")
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://lore.kernel.org/r/b126a5577f3667ef19b1b5feea5e70174084fb03.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-vdec.c