diff options
Diffstat (limited to 'sound/soc/codecs/wm8741.c')
-rw-r--r-- | sound/soc/codecs/wm8741.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8741.c b/sound/soc/codecs/wm8741.c index aea60ef8aba7..494f2d31d75b 100644 --- a/sound/soc/codecs/wm8741.c +++ b/sound/soc/codecs/wm8741.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <sound/pcm.h> | 24 | #include <sound/pcm.h> |
25 | #include <sound/pcm_params.h> | 25 | #include <sound/pcm_params.h> |
26 | #include <sound/soc.h> | 26 | #include <sound/soc.h> |
27 | #include <sound/soc-dapm.h> | ||
28 | #include <sound/initval.h> | 27 | #include <sound/initval.h> |
29 | #include <sound/tlv.h> | 28 | #include <sound/tlv.h> |
30 | 29 | ||
@@ -94,10 +93,11 @@ static const struct snd_soc_dapm_route intercon[] = { | |||
94 | 93 | ||
95 | static int wm8741_add_widgets(struct snd_soc_codec *codec) | 94 | static int wm8741_add_widgets(struct snd_soc_codec *codec) |
96 | { | 95 | { |
97 | snd_soc_dapm_new_controls(codec, wm8741_dapm_widgets, | 96 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
98 | ARRAY_SIZE(wm8741_dapm_widgets)); | ||
99 | 97 | ||
100 | snd_soc_dapm_add_routes(codec, intercon, ARRAY_SIZE(intercon)); | 98 | snd_soc_dapm_new_controls(dapm, wm8741_dapm_widgets, |
99 | ARRAY_SIZE(wm8741_dapm_widgets)); | ||
100 | snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon)); | ||
101 | 101 | ||
102 | return 0; | 102 | return 0; |
103 | } | 103 | } |
@@ -455,7 +455,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8741 = { | |||
455 | .resume = wm8741_resume, | 455 | .resume = wm8741_resume, |
456 | .reg_cache_size = ARRAY_SIZE(wm8741_reg_defaults), | 456 | .reg_cache_size = ARRAY_SIZE(wm8741_reg_defaults), |
457 | .reg_word_size = sizeof(u16), | 457 | .reg_word_size = sizeof(u16), |
458 | .reg_cache_default = &wm8741_reg_defaults, | 458 | .reg_cache_default = wm8741_reg_defaults, |
459 | }; | 459 | }; |
460 | 460 | ||
461 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | 461 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) |