ASoC: topology: Fix stub for snd_soc_tplg_component_remove()
authorMark Brown <broonie@kernel.org>
Mon, 25 Oct 2021 15:48:44 +0000 (16:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:55 +0000 (19:16 +0100)
[ Upstream commit 1198ff12cbdd5f42c032cba1d96ebc7af8024cf9 ]

When removing the index argument from snd_soc_topology_component_remove()
commit a5b8f71c5477f (ASoC: topology: Remove multistep topology loading)
forgot to update the stub for !SND_SOC_TOPOLOGY use, causing build failures
for anything that tries to make use of it.

Fixes: a5b8f71c5477f (ASoC: topology: Remove multistep topology loading)
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20211025154844.2342120-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/sound/soc-topology.h

index 4afd667e124c23a3a07fd5932b7416fe0841ae94..3e8a85e1e8094f96edae1ebf31f2470a825c3808 100644 (file)
@@ -188,8 +188,7 @@ int snd_soc_tplg_widget_bind_event(struct snd_soc_dapm_widget *w,
 
 #else
 
-static inline int snd_soc_tplg_component_remove(struct snd_soc_component *comp,
-                                               u32 index)
+static inline int snd_soc_tplg_component_remove(struct snd_soc_component *comp)
 {
        return 0;
 }