From: Stephen Warren <swarren@nvidia.com> Date: Wed, 6 Apr 2011 01:35:30 +0000 (-0600) Subject: ASoC: Tegra: Suspend/resume support X-Git-Tag: MMI-PSA29.97-13-9~19774^2~30 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=deb2607e6c3d75c7185bb8aba658d9cd57e6e54a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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> --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index b76b74db0968..960718b3beb8 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -2060,6 +2060,7 @@ const struct dev_pm_ops snd_soc_pm_ops = { .resume = snd_soc_resume, .poweroff = snd_soc_poweroff, }; +EXPORT_SYMBOL_GPL(snd_soc_pm_ops); /* ASoC platform driver */ static struct platform_driver soc_driver = { diff --git a/sound/soc/tegra/harmony.c b/sound/soc/tegra/harmony.c index 8585957477eb..556a57133925 100644 --- a/sound/soc/tegra/harmony.c +++ b/sound/soc/tegra/harmony.c @@ -370,6 +370,7 @@ static struct platform_driver tegra_snd_harmony_driver = { .driver = { .name = DRV_NAME, .owner = THIS_MODULE, + .pm = &snd_soc_pm_ops, }, .probe = tegra_snd_harmony_probe, .remove = __devexit_p(tegra_snd_harmony_remove),