diff options
Diffstat (limited to 'sound/soc/codecs/ad1836.c')
-rw-r--r-- | sound/soc/codecs/ad1836.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c index d272534c8f84..c71b05ddd752 100644 --- a/sound/soc/codecs/ad1836.c +++ b/sound/soc/codecs/ad1836.c | |||
@@ -220,6 +220,7 @@ static struct snd_soc_dai_driver ad1836_dai = { | |||
220 | static int ad1836_probe(struct snd_soc_codec *codec) | 220 | static int ad1836_probe(struct snd_soc_codec *codec) |
221 | { | 221 | { |
222 | struct ad1836_priv *ad1836 = snd_soc_codec_get_drvdata(codec); | 222 | struct ad1836_priv *ad1836 = snd_soc_codec_get_drvdata(codec); |
223 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
223 | int ret = 0; | 224 | int ret = 0; |
224 | 225 | ||
225 | codec->control_data = ad1836->control_data; | 226 | codec->control_data = ad1836->control_data; |
@@ -252,9 +253,9 @@ static int ad1836_probe(struct snd_soc_codec *codec) | |||
252 | 253 | ||
253 | snd_soc_add_controls(codec, ad1836_snd_controls, | 254 | snd_soc_add_controls(codec, ad1836_snd_controls, |
254 | ARRAY_SIZE(ad1836_snd_controls)); | 255 | ARRAY_SIZE(ad1836_snd_controls)); |
255 | snd_soc_dapm_new_controls(codec, ad1836_dapm_widgets, | 256 | snd_soc_dapm_new_controls(dapm, ad1836_dapm_widgets, |
256 | ARRAY_SIZE(ad1836_dapm_widgets)); | 257 | ARRAY_SIZE(ad1836_dapm_widgets)); |
257 | snd_soc_dapm_add_routes(codec, audio_paths, ARRAY_SIZE(audio_paths)); | 258 | snd_soc_dapm_add_routes(dapm, audio_paths, ARRAY_SIZE(audio_paths)); |
258 | 259 | ||
259 | return ret; | 260 | return ret; |
260 | } | 261 | } |