summaryrefslogtreecommitdiffstats
path: root/kernel/sound/soc/samsung/smdk_wm8994.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sound/soc/samsung/smdk_wm8994.c')
-rw-r--r--kernel/sound/soc/samsung/smdk_wm8994.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sound/soc/samsung/smdk_wm8994.c b/kernel/sound/soc/samsung/smdk_wm8994.c
index d38595fbd..ff57b192d 100644
--- a/kernel/sound/soc/samsung/smdk_wm8994.c
+++ b/kernel/sound/soc/samsung/smdk_wm8994.c
@@ -86,8 +86,7 @@ static struct snd_soc_ops smdk_ops = {
static int smdk_wm8994_init_paiftx(struct snd_soc_pcm_runtime *rtd)
{
- struct snd_soc_codec *codec = rtd->codec;
- struct snd_soc_dapm_context *dapm = &codec->dapm;
+ struct snd_soc_dapm_context *dapm = &rtd->card->dapm;
/* Other pins NC */
snd_soc_dapm_nc_pin(dapm, "HPOUT2P");