Skip to content

Commit d8e2e0d

Browse files
morimotobroonie
authored andcommitted
ASoC: soc-core: remove null_snd_soc_ops
All rtd->dai_link callback functions are controlled by soc_rtd_xxxx(), and checking rtd->dai_link->ops. We don't need to have null_snd_soc_ops anymore. This patch removes it. Signed-off-by: Kuninori Morimoto <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ranjani Sridharan <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent ad2bf9f commit d8e2e0d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sound/soc/soc-core.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,6 @@ struct snd_soc_component *snd_soc_lookup_component(struct device *dev,
342342
}
343343
EXPORT_SYMBOL_GPL(snd_soc_lookup_component);
344344

345-
static const struct snd_soc_ops null_snd_soc_ops;
346-
347345
struct snd_soc_pcm_runtime
348346
*snd_soc_get_pcm_runtime(struct snd_soc_card *card,
349347
struct snd_soc_dai_link *dai_link)
@@ -488,8 +486,6 @@ static struct snd_soc_pcm_runtime *soc_new_pcm_runtime(
488486
*/
489487
rtd->card = card;
490488
rtd->dai_link = dai_link;
491-
if (!rtd->dai_link->ops)
492-
rtd->dai_link->ops = &null_snd_soc_ops;
493489

494490
/* see for_each_card_rtds */
495491
list_add_tail(&rtd->list, &card->rtd_list);

0 commit comments

Comments
 (0)