diff options
Diffstat (limited to 'sound/soc/codecs/wm8961.c')
-rw-r--r-- | sound/soc/codecs/wm8961.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c index 503032085899..a8007d58813f 100644 --- a/sound/soc/codecs/wm8961.c +++ b/sound/soc/codecs/wm8961.c | |||
@@ -986,19 +986,9 @@ static int wm8961_probe(struct platform_device *pdev) | |||
986 | snd_soc_dapm_new_controls(codec, wm8961_dapm_widgets, | 986 | snd_soc_dapm_new_controls(codec, wm8961_dapm_widgets, |
987 | ARRAY_SIZE(wm8961_dapm_widgets)); | 987 | ARRAY_SIZE(wm8961_dapm_widgets)); |
988 | snd_soc_dapm_add_routes(codec, audio_paths, ARRAY_SIZE(audio_paths)); | 988 | snd_soc_dapm_add_routes(codec, audio_paths, ARRAY_SIZE(audio_paths)); |
989 | snd_soc_dapm_new_widgets(codec); | ||
990 | |||
991 | ret = snd_soc_init_card(socdev); | ||
992 | if (ret < 0) { | ||
993 | dev_err(codec->dev, "failed to register card: %d\n", ret); | ||
994 | goto card_err; | ||
995 | } | ||
996 | 989 | ||
997 | return ret; | 990 | return ret; |
998 | 991 | ||
999 | card_err: | ||
1000 | snd_soc_free_pcms(socdev); | ||
1001 | snd_soc_dapm_free(socdev); | ||
1002 | pcm_err: | 992 | pcm_err: |
1003 | return ret; | 993 | return ret; |
1004 | } | 994 | } |
@@ -1206,21 +1196,6 @@ static __devexit int wm8961_i2c_remove(struct i2c_client *client) | |||
1206 | return 0; | 1196 | return 0; |
1207 | } | 1197 | } |
1208 | 1198 | ||
1209 | #ifdef CONFIG_PM | ||
1210 | static int wm8961_i2c_suspend(struct i2c_client *client, pm_message_t state) | ||
1211 | { | ||
1212 | return snd_soc_suspend_device(&client->dev); | ||
1213 | } | ||
1214 | |||
1215 | static int wm8961_i2c_resume(struct i2c_client *client) | ||
1216 | { | ||
1217 | return snd_soc_resume_device(&client->dev); | ||
1218 | } | ||
1219 | #else | ||
1220 | #define wm8961_i2c_suspend NULL | ||
1221 | #define wm8961_i2c_resume NULL | ||
1222 | #endif | ||
1223 | |||
1224 | static const struct i2c_device_id wm8961_i2c_id[] = { | 1199 | static const struct i2c_device_id wm8961_i2c_id[] = { |
1225 | { "wm8961", 0 }, | 1200 | { "wm8961", 0 }, |
1226 | { } | 1201 | { } |
@@ -1234,8 +1209,6 @@ static struct i2c_driver wm8961_i2c_driver = { | |||
1234 | }, | 1209 | }, |
1235 | .probe = wm8961_i2c_probe, | 1210 | .probe = wm8961_i2c_probe, |
1236 | .remove = __devexit_p(wm8961_i2c_remove), | 1211 | .remove = __devexit_p(wm8961_i2c_remove), |
1237 | .suspend = wm8961_i2c_suspend, | ||
1238 | .resume = wm8961_i2c_resume, | ||
1239 | .id_table = wm8961_i2c_id, | 1212 | .id_table = wm8961_i2c_id, |
1240 | }; | 1213 | }; |
1241 | 1214 | ||