diff options
Diffstat (limited to 'sound/soc/codecs/wm8804.c')
-rw-r--r-- | sound/soc/codecs/wm8804.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c index 9ee072b85975..d54a3ca5e19e 100644 --- a/sound/soc/codecs/wm8804.c +++ b/sound/soc/codecs/wm8804.c | |||
@@ -542,7 +542,7 @@ static int wm8804_set_bias_level(struct snd_soc_codec *codec, | |||
542 | } | 542 | } |
543 | 543 | ||
544 | #ifdef CONFIG_PM | 544 | #ifdef CONFIG_PM |
545 | static int wm8804_suspend(struct snd_soc_codec *codec, pm_message_t state) | 545 | static int wm8804_suspend(struct snd_soc_codec *codec) |
546 | { | 546 | { |
547 | wm8804_set_bias_level(codec, SND_SOC_BIAS_OFF); | 547 | wm8804_set_bias_level(codec, SND_SOC_BIAS_OFF); |
548 | return 0; | 548 | return 0; |
@@ -659,8 +659,6 @@ static int wm8804_probe(struct snd_soc_codec *codec) | |||
659 | 659 | ||
660 | wm8804_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 660 | wm8804_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
661 | 661 | ||
662 | snd_soc_add_controls(codec, wm8804_snd_controls, | ||
663 | ARRAY_SIZE(wm8804_snd_controls)); | ||
664 | return 0; | 662 | return 0; |
665 | 663 | ||
666 | err_reg_enable: | 664 | err_reg_enable: |
@@ -670,7 +668,7 @@ err_reg_get: | |||
670 | return ret; | 668 | return ret; |
671 | } | 669 | } |
672 | 670 | ||
673 | static struct snd_soc_dai_ops wm8804_dai_ops = { | 671 | static const struct snd_soc_dai_ops wm8804_dai_ops = { |
674 | .hw_params = wm8804_hw_params, | 672 | .hw_params = wm8804_hw_params, |
675 | .set_fmt = wm8804_set_fmt, | 673 | .set_fmt = wm8804_set_fmt, |
676 | .set_sysclk = wm8804_set_sysclk, | 674 | .set_sysclk = wm8804_set_sysclk, |
@@ -715,7 +713,10 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8804 = { | |||
715 | .reg_cache_size = ARRAY_SIZE(wm8804_reg_defs), | 713 | .reg_cache_size = ARRAY_SIZE(wm8804_reg_defs), |
716 | .reg_word_size = sizeof(u8), | 714 | .reg_word_size = sizeof(u8), |
717 | .reg_cache_default = wm8804_reg_defs, | 715 | .reg_cache_default = wm8804_reg_defs, |
718 | .volatile_register = wm8804_volatile | 716 | .volatile_register = wm8804_volatile, |
717 | |||
718 | .controls = wm8804_snd_controls, | ||
719 | .num_controls = ARRAY_SIZE(wm8804_snd_controls), | ||
719 | }; | 720 | }; |
720 | 721 | ||
721 | static const struct of_device_id wm8804_of_match[] = { | 722 | static const struct of_device_id wm8804_of_match[] = { |