]> Git Repo - linux.git/commitdiff
ASoC: soc-core: remove null_snd_soc_ops
authorKuninori Morimoto <[email protected]>
Wed, 22 Jan 2020 00:45:00 +0000 (09:45 +0900)
committerMark Brown <[email protected]>
Thu, 23 Jan 2020 12:20:06 +0000 (12:20 +0000)
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]>
sound/soc/soc-core.c

index f969a3b8c82ba4c217dc1433f3b3e271c3c0777d..068d809c349a2fc05da5db90802207232b95681f 100644 (file)
@@ -342,8 +342,6 @@ struct snd_soc_component *snd_soc_lookup_component(struct device *dev,
 }
 EXPORT_SYMBOL_GPL(snd_soc_lookup_component);
 
-static const struct snd_soc_ops null_snd_soc_ops;
-
 struct snd_soc_pcm_runtime
 *snd_soc_get_pcm_runtime(struct snd_soc_card *card,
                         struct snd_soc_dai_link *dai_link)
@@ -488,8 +486,6 @@ static struct snd_soc_pcm_runtime *soc_new_pcm_runtime(
         */
        rtd->card = card;
        rtd->dai_link = dai_link;
-       if (!rtd->dai_link->ops)
-               rtd->dai_link->ops = &null_snd_soc_ops;
 
        /* see for_each_card_rtds */
        list_add_tail(&rtd->list, &card->rtd_list);
This page took 0.062296 seconds and 4 git commands to generate.