ASoC: Tegra: Suspend/resume support

ASoC machine drivers that are their own platform_driver (as opposed to
those using the soc-audio platform_driver) need to explicitly set up
power-management operation callbacks.

To avoid cut/paste, snd_soc_pm_ops also needs to be exported.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Stephen Warren 2011-04-05 19:35:30 -06:00 committed by Mark Brown
parent 00b317a41c
commit deb2607e6c
2 changed files with 2 additions and 0 deletions

View File

@ -2060,6 +2060,7 @@ const struct dev_pm_ops snd_soc_pm_ops = {
.resume = snd_soc_resume, .resume = snd_soc_resume,
.poweroff = snd_soc_poweroff, .poweroff = snd_soc_poweroff,
}; };
EXPORT_SYMBOL_GPL(snd_soc_pm_ops);
/* ASoC platform driver */ /* ASoC platform driver */
static struct platform_driver soc_driver = { static struct platform_driver soc_driver = {

View File

@ -370,6 +370,7 @@ static struct platform_driver tegra_snd_harmony_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &snd_soc_pm_ops,
}, },
.probe = tegra_snd_harmony_probe, .probe = tegra_snd_harmony_probe,
.remove = __devexit_p(tegra_snd_harmony_remove), .remove = __devexit_p(tegra_snd_harmony_remove),