diff options
Diffstat (limited to 'sound/soc/codecs/wm9712.c')
-rw-r--r-- | sound/soc/codecs/wm9712.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index 90117f8156e..b7b31f84c10 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c | |||
@@ -505,11 +505,11 @@ static int ac97_aux_prepare(struct snd_pcm_substream *substream, | |||
505 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 |\ | 505 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 |\ |
506 | SNDRV_PCM_RATE_48000) | 506 | SNDRV_PCM_RATE_48000) |
507 | 507 | ||
508 | static struct snd_soc_dai_ops wm9712_dai_ops_hifi = { | 508 | static const struct snd_soc_dai_ops wm9712_dai_ops_hifi = { |
509 | .prepare = ac97_prepare, | 509 | .prepare = ac97_prepare, |
510 | }; | 510 | }; |
511 | 511 | ||
512 | static struct snd_soc_dai_ops wm9712_dai_ops_aux = { | 512 | static const struct snd_soc_dai_ops wm9712_dai_ops_aux = { |
513 | .prepare = ac97_aux_prepare, | 513 | .prepare = ac97_aux_prepare, |
514 | }; | 514 | }; |
515 | 515 | ||
@@ -583,8 +583,7 @@ err: | |||
583 | return -EIO; | 583 | return -EIO; |
584 | } | 584 | } |
585 | 585 | ||
586 | static int wm9712_soc_suspend(struct snd_soc_codec *codec, | 586 | static int wm9712_soc_suspend(struct snd_soc_codec *codec) |
587 | pm_message_t state) | ||
588 | { | 587 | { |
589 | wm9712_set_bias_level(codec, SND_SOC_BIAS_OFF); | 588 | wm9712_set_bias_level(codec, SND_SOC_BIAS_OFF); |
590 | return 0; | 589 | return 0; |
@@ -694,17 +693,7 @@ static struct platform_driver wm9712_codec_driver = { | |||
694 | .remove = __devexit_p(wm9712_remove), | 693 | .remove = __devexit_p(wm9712_remove), |
695 | }; | 694 | }; |
696 | 695 | ||
697 | static int __init wm9712_init(void) | 696 | module_platform_driver(wm9712_codec_driver); |
698 | { | ||
699 | return platform_driver_register(&wm9712_codec_driver); | ||
700 | } | ||
701 | module_init(wm9712_init); | ||
702 | |||
703 | static void __exit wm9712_exit(void) | ||
704 | { | ||
705 | platform_driver_unregister(&wm9712_codec_driver); | ||
706 | } | ||
707 | module_exit(wm9712_exit); | ||
708 | 697 | ||
709 | MODULE_DESCRIPTION("ASoC WM9711/WM9712 driver"); | 698 | MODULE_DESCRIPTION("ASoC WM9711/WM9712 driver"); |
710 | MODULE_AUTHOR("Liam Girdwood"); | 699 | MODULE_AUTHOR("Liam Girdwood"); |