diff options
-rw-r--r-- | sound/soc/codecs/wm8523.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/sound/soc/codecs/wm8523.c b/sound/soc/codecs/wm8523.c index ec1f5740dbd0..b1cc94f5fc4b 100644 --- a/sound/soc/codecs/wm8523.c +++ b/sound/soc/codecs/wm8523.c | |||
@@ -372,23 +372,6 @@ static struct snd_soc_dai_driver wm8523_dai = { | |||
372 | .ops = &wm8523_dai_ops, | 372 | .ops = &wm8523_dai_ops, |
373 | }; | 373 | }; |
374 | 374 | ||
375 | #ifdef CONFIG_PM | ||
376 | static int wm8523_suspend(struct snd_soc_codec *codec) | ||
377 | { | ||
378 | wm8523_set_bias_level(codec, SND_SOC_BIAS_OFF); | ||
379 | return 0; | ||
380 | } | ||
381 | |||
382 | static int wm8523_resume(struct snd_soc_codec *codec) | ||
383 | { | ||
384 | wm8523_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | ||
385 | return 0; | ||
386 | } | ||
387 | #else | ||
388 | #define wm8523_suspend NULL | ||
389 | #define wm8523_resume NULL | ||
390 | #endif | ||
391 | |||
392 | static int wm8523_probe(struct snd_soc_codec *codec) | 375 | static int wm8523_probe(struct snd_soc_codec *codec) |
393 | { | 376 | { |
394 | struct wm8523_priv *wm8523 = snd_soc_codec_get_drvdata(codec); | 377 | struct wm8523_priv *wm8523 = snd_soc_codec_get_drvdata(codec); |
@@ -402,23 +385,13 @@ static int wm8523_probe(struct snd_soc_codec *codec) | |||
402 | WM8523_DACR_VU, WM8523_DACR_VU); | 385 | WM8523_DACR_VU, WM8523_DACR_VU); |
403 | snd_soc_update_bits(codec, WM8523_DAC_CTRL3, WM8523_ZC, WM8523_ZC); | 386 | snd_soc_update_bits(codec, WM8523_DAC_CTRL3, WM8523_ZC, WM8523_ZC); |
404 | 387 | ||
405 | wm8523_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | ||
406 | |||
407 | return 0; | ||
408 | } | ||
409 | |||
410 | static int wm8523_remove(struct snd_soc_codec *codec) | ||
411 | { | ||
412 | wm8523_set_bias_level(codec, SND_SOC_BIAS_OFF); | ||
413 | return 0; | 388 | return 0; |
414 | } | 389 | } |
415 | 390 | ||
416 | static struct snd_soc_codec_driver soc_codec_dev_wm8523 = { | 391 | static struct snd_soc_codec_driver soc_codec_dev_wm8523 = { |
417 | .probe = wm8523_probe, | 392 | .probe = wm8523_probe, |
418 | .remove = wm8523_remove, | ||
419 | .suspend = wm8523_suspend, | ||
420 | .resume = wm8523_resume, | ||
421 | .set_bias_level = wm8523_set_bias_level, | 393 | .set_bias_level = wm8523_set_bias_level, |
394 | .suspend_bias_off = true, | ||
422 | 395 | ||
423 | .controls = wm8523_controls, | 396 | .controls = wm8523_controls, |
424 | .num_controls = ARRAY_SIZE(wm8523_controls), | 397 | .num_controls = ARRAY_SIZE(wm8523_controls), |