Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: mediatek: mt8186: Remove unused mt8186_afe_(suspend|resume)_clock

mt8186_afe_resume_clock() and mt8186_afe_suspend_clock() were
added in 2022 by
commit 55b423d5623c ("ASoC: mediatek: mt8186: support audio clock control
in platform driver")

but have remained unused.

Remove them.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://patch.msgid.link/20250206014028.237423-1-linux@treblig.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Dr. David Alan Gilbert and committed by
Mark Brown
78e66dd5 6603c513

-57
-55
sound/soc/mediatek/mt8186/mt8186-afe-clk.c
··· 329 329 clk_disable_unprepare(afe_priv->clk[CLK_INFRA_SYS_AUDIO]); 330 330 } 331 331 332 - int mt8186_afe_suspend_clock(struct mtk_base_afe *afe) 333 - { 334 - struct mt8186_afe_private *afe_priv = afe->platform_priv; 335 - int ret; 336 - 337 - /* set audio int bus to 26M */ 338 - ret = clk_prepare_enable(afe_priv->clk[CLK_MUX_AUDIOINTBUS]); 339 - if (ret) { 340 - dev_info(afe->dev, "%s clk_prepare_enable %s fail %d\n", 341 - __func__, aud_clks[CLK_MUX_AUDIOINTBUS], ret); 342 - goto clk_mux_audio_intbus_err; 343 - } 344 - ret = mt8186_set_audio_int_bus_parent(afe, CLK_CLK26M); 345 - if (ret) 346 - goto clk_mux_audio_intbus_parent_err; 347 - 348 - clk_disable_unprepare(afe_priv->clk[CLK_MUX_AUDIOINTBUS]); 349 - 350 - return 0; 351 - 352 - clk_mux_audio_intbus_parent_err: 353 - mt8186_set_audio_int_bus_parent(afe, CLK_TOP_MAINPLL_D2_D4); 354 - clk_mux_audio_intbus_err: 355 - clk_disable_unprepare(afe_priv->clk[CLK_MUX_AUDIOINTBUS]); 356 - return ret; 357 - } 358 - 359 - int mt8186_afe_resume_clock(struct mtk_base_afe *afe) 360 - { 361 - struct mt8186_afe_private *afe_priv = afe->platform_priv; 362 - int ret; 363 - 364 - /* set audio int bus to normal working clock */ 365 - ret = clk_prepare_enable(afe_priv->clk[CLK_MUX_AUDIOINTBUS]); 366 - if (ret) { 367 - dev_info(afe->dev, "%s clk_prepare_enable %s fail %d\n", 368 - __func__, aud_clks[CLK_MUX_AUDIOINTBUS], ret); 369 - goto clk_mux_audio_intbus_err; 370 - } 371 - ret = mt8186_set_audio_int_bus_parent(afe, 372 - CLK_TOP_MAINPLL_D2_D4); 373 - if (ret) 374 - goto clk_mux_audio_intbus_parent_err; 375 - 376 - clk_disable_unprepare(afe_priv->clk[CLK_MUX_AUDIOINTBUS]); 377 - 378 - return 0; 379 - 380 - clk_mux_audio_intbus_parent_err: 381 - mt8186_set_audio_int_bus_parent(afe, CLK_CLK26M); 382 - clk_mux_audio_intbus_err: 383 - clk_disable_unprepare(afe_priv->clk[CLK_MUX_AUDIOINTBUS]); 384 - return ret; 385 - } 386 - 387 332 int mt8186_apll1_enable(struct mtk_base_afe *afe) 388 333 { 389 334 struct mt8186_afe_private *afe_priv = afe->platform_priv;
-2
sound/soc/mediatek/mt8186/mt8186-afe-clk.h
··· 85 85 void mt8186_afe_disable_cgs(struct mtk_base_afe *afe); 86 86 int mt8186_afe_enable_clock(struct mtk_base_afe *afe); 87 87 void mt8186_afe_disable_clock(struct mtk_base_afe *afe); 88 - int mt8186_afe_suspend_clock(struct mtk_base_afe *afe); 89 - int mt8186_afe_resume_clock(struct mtk_base_afe *afe); 90 88 91 89 int mt8186_apll1_enable(struct mtk_base_afe *afe); 92 90 void mt8186_apll1_disable(struct mtk_base_afe *afe);