From: Kuninori Morimoto Date: Wed, 30 Oct 2019 01:26:10 +0000 (+0900) Subject: ASoC: soc-core: remove unneeded snd_soc_tplg_component_remove() X-Git-Tag: v5.10.7~3493^2~20^2~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9904ed5e73af4fd00cf4fcf705420a385af45da;p=platform%2Fkernel%2Flinux-rpi.git ASoC: soc-core: remove unneeded snd_soc_tplg_component_remove() snd_soc_tplg_component_remove() is pair of snd_soc_tplg_component_load(), and it is topology related cleanup function. The driver which called _load() needs to call _remove() by its responsibility. Today, skl-pcm and topology are the user, and these are calling both _load() and _remove(). soc-core doesn't need to call it. This patch remove it. Signed-off-by: Kuninori Morimoto Link: https://lore.kernel.org/r/8736fbdnwt.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index f1b41b0..b07ecfa 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -2890,8 +2890,6 @@ static int __snd_soc_unregister_component(struct device *dev) if (dev != component->dev) continue; - snd_soc_tplg_component_remove(component, - SND_SOC_TPLG_INDEX_ALL); snd_soc_component_del_unlocked(component); found = 1; break;