clk: mediatek: mt8135: Fix an error handling path in clk_mt8135_apmixed_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Jan 2024 08:12:17 +0000 (09:12 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 22 Feb 2024 04:51:33 +0000 (20:51 -0800)
commit03c1c51eba6be49b42816af9db114553131af6c8
tree1a18b33c0867e190f6739852188199c92ff8d434
parent6613476e225e090cc9aad49be7fa504e290dd33d
clk: mediatek: mt8135: Fix an error handling path in clk_mt8135_apmixed_probe()

If an error occurs after mtk_alloc_clk_data(), mtk_free_clk_data() should
be called, as already done in the remove function.

Fixes: 54b7026f011e ("clk: mediatek: mt8135-apmixedsys: Convert to platform_driver and module")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/6cd6af61e5a91598068227f1f68cfcfde1507453.1704615011.git.christophe.jaillet@wanadoo.fr
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mt8135-apmixedsys.c