diff options
Diffstat (limited to 'sound/soc/codecs/wm8940.c')
-rw-r--r-- | sound/soc/codecs/wm8940.c | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c index 1ef2454c5205..3d850b97037a 100644 --- a/sound/soc/codecs/wm8940.c +++ b/sound/soc/codecs/wm8940.c | |||
@@ -298,7 +298,6 @@ static int wm8940_add_widgets(struct snd_soc_codec *codec) | |||
298 | ret = snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 298 | ret = snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); |
299 | if (ret) | 299 | if (ret) |
300 | goto error_ret; | 300 | goto error_ret; |
301 | ret = snd_soc_dapm_new_widgets(codec); | ||
302 | 301 | ||
303 | error_ret: | 302 | error_ret: |
304 | return ret; | 303 | return ret; |
@@ -536,8 +535,8 @@ static void pll_factors(unsigned int target, unsigned int source) | |||
536 | } | 535 | } |
537 | 536 | ||
538 | /* Untested at the moment */ | 537 | /* Untested at the moment */ |
539 | static int wm8940_set_dai_pll(struct snd_soc_dai *codec_dai, | 538 | static int wm8940_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, |
540 | int pll_id, unsigned int freq_in, unsigned int freq_out) | 539 | int source, unsigned int freq_in, unsigned int freq_out) |
541 | { | 540 | { |
542 | struct snd_soc_codec *codec = codec_dai->codec; | 541 | struct snd_soc_codec *codec = codec_dai->codec; |
543 | u16 reg; | 542 | u16 reg; |
@@ -731,12 +730,6 @@ static int wm8940_probe(struct platform_device *pdev) | |||
731 | if (ret) | 730 | if (ret) |
732 | goto error_free_pcms; | 731 | goto error_free_pcms; |
733 | 732 | ||
734 | ret = snd_soc_init_card(socdev); | ||
735 | if (ret < 0) { | ||
736 | dev_err(codec->dev, "failed to register card: %d\n", ret); | ||
737 | goto error_free_pcms; | ||
738 | } | ||
739 | |||
740 | return ret; | 733 | return ret; |
741 | 734 | ||
742 | error_free_pcms: | 735 | error_free_pcms: |
@@ -877,21 +870,6 @@ static int __devexit wm8940_i2c_remove(struct i2c_client *client) | |||
877 | return 0; | 870 | return 0; |
878 | } | 871 | } |
879 | 872 | ||
880 | #ifdef CONFIG_PM | ||
881 | static int wm8940_i2c_suspend(struct i2c_client *client, pm_message_t msg) | ||
882 | { | ||
883 | return snd_soc_suspend_device(&client->dev); | ||
884 | } | ||
885 | |||
886 | static int wm8940_i2c_resume(struct i2c_client *client) | ||
887 | { | ||
888 | return snd_soc_resume_device(&client->dev); | ||
889 | } | ||
890 | #else | ||
891 | #define wm8940_i2c_suspend NULL | ||
892 | #define wm8940_i2c_resume NULL | ||
893 | #endif | ||
894 | |||
895 | static const struct i2c_device_id wm8940_i2c_id[] = { | 873 | static const struct i2c_device_id wm8940_i2c_id[] = { |
896 | { "wm8940", 0 }, | 874 | { "wm8940", 0 }, |
897 | { } | 875 | { } |
@@ -905,8 +883,6 @@ static struct i2c_driver wm8940_i2c_driver = { | |||
905 | }, | 883 | }, |
906 | .probe = wm8940_i2c_probe, | 884 | .probe = wm8940_i2c_probe, |
907 | .remove = __devexit_p(wm8940_i2c_remove), | 885 | .remove = __devexit_p(wm8940_i2c_remove), |
908 | .suspend = wm8940_i2c_suspend, | ||
909 | .resume = wm8940_i2c_resume, | ||
910 | .id_table = wm8940_i2c_id, | 886 | .id_table = wm8940_i2c_id, |
911 | }; | 887 | }; |
912 | 888 | ||