diff options
Diffstat (limited to 'sound/soc/codecs/wm8940.c')
-rw-r--r-- | sound/soc/codecs/wm8940.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c index 23086e2c976a..25580e3ee7c4 100644 --- a/sound/soc/codecs/wm8940.c +++ b/sound/soc/codecs/wm8940.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <sound/pcm.h> | 35 | #include <sound/pcm.h> |
36 | #include <sound/pcm_params.h> | 36 | #include <sound/pcm_params.h> |
37 | #include <sound/soc.h> | 37 | #include <sound/soc.h> |
38 | #include <sound/soc-dapm.h> | ||
39 | #include <sound/initval.h> | 38 | #include <sound/initval.h> |
40 | #include <sound/tlv.h> | 39 | #include <sound/tlv.h> |
41 | 40 | ||
@@ -43,7 +42,6 @@ | |||
43 | 42 | ||
44 | struct wm8940_priv { | 43 | struct wm8940_priv { |
45 | unsigned int sysclk; | 44 | unsigned int sysclk; |
46 | u16 reg_cache[WM8940_CACHEREGNUM]; | ||
47 | enum snd_soc_control_type control_type; | 45 | enum snd_soc_control_type control_type; |
48 | void *control_data; | 46 | void *control_data; |
49 | }; | 47 | }; |
@@ -291,13 +289,14 @@ static const struct snd_soc_dapm_route audio_map[] = { | |||
291 | 289 | ||
292 | static int wm8940_add_widgets(struct snd_soc_codec *codec) | 290 | static int wm8940_add_widgets(struct snd_soc_codec *codec) |
293 | { | 291 | { |
292 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
294 | int ret; | 293 | int ret; |
295 | 294 | ||
296 | ret = snd_soc_dapm_new_controls(codec, wm8940_dapm_widgets, | 295 | ret = snd_soc_dapm_new_controls(dapm, wm8940_dapm_widgets, |
297 | ARRAY_SIZE(wm8940_dapm_widgets)); | 296 | ARRAY_SIZE(wm8940_dapm_widgets)); |
298 | if (ret) | 297 | if (ret) |
299 | goto error_ret; | 298 | goto error_ret; |
300 | ret = snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 299 | ret = snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); |
301 | if (ret) | 300 | if (ret) |
302 | goto error_ret; | 301 | goto error_ret; |
303 | 302 | ||
@@ -735,7 +734,6 @@ static int wm8940_probe(struct snd_soc_codec *codec) | |||
735 | return ret; | 734 | return ret; |
736 | 735 | ||
737 | return ret; | 736 | return ret; |
738 | ; | ||
739 | } | 737 | } |
740 | 738 | ||
741 | static int wm8940_remove(struct snd_soc_codec *codec) | 739 | static int wm8940_remove(struct snd_soc_codec *codec) |