From: Peter Ujfalusi Date: Mon, 9 May 2016 10:38:10 +0000 (+0300) Subject: ASoC: simple-card: Add pm callbacks to platform driver X-Git-Tag: MMI-PSA29.97-13-9~7791^2^2~13^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c3767115a04bc7aa87bdbd3352d1801d4bbeea4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: simple-card: Add pm callbacks to platform driver Set snd_soc_pm_ops for the pm ops to make sure that the ASoC level of PM operations are going to happen. This is needed to get suspend/resume working correctly when the audio is using simple-card. Signed-off-by: Peter Ujfalusi Signed-off-by: Mark Brown --- diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 2389ab47e25f..466492b7d4f5 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -643,6 +643,7 @@ MODULE_DEVICE_TABLE(of, asoc_simple_of_match); static struct platform_driver asoc_simple_card = { .driver = { .name = "asoc-simple-card", + .pm = &snd_soc_pm_ops, .of_match_table = asoc_simple_of_match, }, .probe = asoc_simple_card_probe,