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 90e31e9aa6f7..35789b7dcacf 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 | ||
@@ -95,10 +94,11 @@ static const struct snd_soc_dapm_route intercon[] = { | |||
95 | 94 | ||
96 | static int wm8741_add_widgets(struct snd_soc_codec *codec) | 95 | static int wm8741_add_widgets(struct snd_soc_codec *codec) |
97 | { | 96 | { |
98 | snd_soc_dapm_new_controls(codec, wm8741_dapm_widgets, | 97 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
99 | ARRAY_SIZE(wm8741_dapm_widgets)); | ||
100 | 98 | ||
101 | snd_soc_dapm_add_routes(codec, intercon, ARRAY_SIZE(intercon)); | 99 | snd_soc_dapm_new_controls(dapm, wm8741_dapm_widgets, |
100 | ARRAY_SIZE(wm8741_dapm_widgets)); | ||
101 | snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon)); | ||
102 | 102 | ||
103 | return 0; | 103 | return 0; |
104 | } | 104 | } |
@@ -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) |