From: Kuninori Morimoto Date: Fri, 25 Aug 2017 01:06:04 +0000 (+0000) Subject: ASoC: use snd_soc_component_get_dapm() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88c27465dc7e3f11c43de295f623c44f593a0912;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: use snd_soc_component_get_dapm() Now we have snd_soc_component_get_dapm(), and as soc.h say below, let's use it. /* Don't use these, use snd_soc_component_get_dapm() */ struct snd_soc_dapm_context dapm; Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 74c17068bb11..92e09cb7fda4 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -3220,7 +3220,7 @@ static int snd_soc_component_initialize(struct snd_soc_component *component, component->pcm_new = component->driver->pcm_new; component->pcm_free = component->driver->pcm_free; - dapm = &component->dapm; + dapm = snd_soc_component_get_dapm(component); dapm->dev = dev; dapm->component = component; dapm->bias_level = SND_SOC_BIAS_OFF;