Skip to content

Commit

Permalink
ASoC: topology: Fix stub for snd_soc_tplg_component_remove()
Browse files Browse the repository at this point in the history
When removing the index argument from snd_soc_topology_component_remove()
commit a5b8f71 (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: a5b8f71 (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>
  • Loading branch information
Mark Brown committed Oct 25, 2021
1 parent 4b29d5a commit 1198ff1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/sound/soc-topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1198ff1

Please sign in to comment.