diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-10-13 12:39:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-10-15 10:01:43 -0400 |
commit | d2058b0cd039aad89b111d83b9c347e9d8f57a84 (patch) | |
tree | 6bd622cf1ba7518a2e01cab18302b8bdea8b727c /sound/soc/codecs/wm8400.c | |
parent | ed9d040d40942e9c48167f9f37f86fab8e0e5e17 (diff) |
ASoC: Remove snd_soc_suspend_device()
The PM core will grow pm_link infrastructure in 2.6.33 which can be
used to implement the intended functionality of the ASoC-specific
device suspend and resume callbacks so drop them.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8400.c')
-rw-r--r-- | sound/soc/codecs/wm8400.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c index 9cb8e50f0fbb..bd7eecba20fe 100644 --- a/sound/soc/codecs/wm8400.c +++ b/sound/soc/codecs/wm8400.c | |||
@@ -1559,21 +1559,6 @@ static int __exit wm8400_codec_remove(struct platform_device *dev) | |||
1559 | return 0; | 1559 | return 0; |
1560 | } | 1560 | } |
1561 | 1561 | ||
1562 | #ifdef CONFIG_PM | ||
1563 | static int wm8400_pdev_suspend(struct platform_device *pdev, pm_message_t msg) | ||
1564 | { | ||
1565 | return snd_soc_suspend_device(&pdev->dev); | ||
1566 | } | ||
1567 | |||
1568 | static int wm8400_pdev_resume(struct platform_device *pdev) | ||
1569 | { | ||
1570 | return snd_soc_resume_device(&pdev->dev); | ||
1571 | } | ||
1572 | #else | ||
1573 | #define wm8400_pdev_suspend NULL | ||
1574 | #define wm8400_pdev_resume NULL | ||
1575 | #endif | ||
1576 | |||
1577 | static struct platform_driver wm8400_codec_driver = { | 1562 | static struct platform_driver wm8400_codec_driver = { |
1578 | .driver = { | 1563 | .driver = { |
1579 | .name = "wm8400-codec", | 1564 | .name = "wm8400-codec", |
@@ -1581,8 +1566,6 @@ static struct platform_driver wm8400_codec_driver = { | |||
1581 | }, | 1566 | }, |
1582 | .probe = wm8400_codec_probe, | 1567 | .probe = wm8400_codec_probe, |
1583 | .remove = __exit_p(wm8400_codec_remove), | 1568 | .remove = __exit_p(wm8400_codec_remove), |
1584 | .suspend = wm8400_pdev_suspend, | ||
1585 | .resume = wm8400_pdev_resume, | ||
1586 | }; | 1569 | }; |
1587 | 1570 | ||
1588 | static int __init wm8400_codec_init(void) | 1571 | static int __init wm8400_codec_init(void) |