diff options
| -rw-r--r-- | sound/soc/codecs/wm8997.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c index a4d11770630c..e9c4a9f35392 100644 --- a/sound/soc/codecs/wm8997.c +++ b/sound/soc/codecs/wm8997.c | |||
| @@ -1055,13 +1055,14 @@ static struct snd_soc_dai_driver wm8997_dai[] = { | |||
| 1055 | 1055 | ||
| 1056 | static int wm8997_codec_probe(struct snd_soc_codec *codec) | 1056 | static int wm8997_codec_probe(struct snd_soc_codec *codec) |
| 1057 | { | 1057 | { |
| 1058 | struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); | ||
| 1058 | struct wm8997_priv *priv = snd_soc_codec_get_drvdata(codec); | 1059 | struct wm8997_priv *priv = snd_soc_codec_get_drvdata(codec); |
| 1059 | 1060 | ||
| 1060 | arizona_init_spk(codec); | 1061 | arizona_init_spk(codec); |
| 1061 | 1062 | ||
| 1062 | snd_soc_dapm_disable_pin(&codec->dapm, "HAPTICS"); | 1063 | snd_soc_dapm_disable_pin(dapm, "HAPTICS"); |
| 1063 | 1064 | ||
| 1064 | priv->core.arizona->dapm = &codec->dapm; | 1065 | priv->core.arizona->dapm = dapm; |
| 1065 | 1066 | ||
| 1066 | return 0; | 1067 | return 0; |
| 1067 | } | 1068 | } |
