Skip to contentSkip to conversation

ASoC: fsl: Add missing pm to current machine drivers

PATCH Applied Nicolin Chen 2 participants 2 messages Oct 24, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: fsl: Add missing pm to current machine drivers

Add missing pm to current machine drivers so that all of them would correctly do suspend/resume.

---
 sound/soc/fsl/imx-mc13783.c  | 1 +
 sound/soc/fsl/imx-sgtl5000.c | 1 +
 sound/soc/fsl/imx-wm8962.c   | 1 +
 3 files changed, 3 insertions(+)
sound/soc/fsl/imx-mc13783.c +1 -0
index a3d60d4..8ded5ad 100644
@@ -160,6 +160,7 @@ static struct platform_driver imx_mc13783_audio_driver = {
 	.driver = {
 		.name = "imx_mc13783",
 		.owner = THIS_MODULE,
+		.pm = &snd_soc_pm_ops,
 	},
 	.probe = imx_mc13783_probe,
 	.remove = imx_mc13783_remove
sound/soc/fsl/imx-sgtl5000.c +1 -0
index 6f4bdc8..4b65c04 100644
@@ -201,6 +201,7 @@ static struct platform_driver imx_sgtl5000_driver = {
 	.driver = {
 		.name = "imx-sgtl5000",
 		.owner = THIS_MODULE,
+		.pm = &snd_soc_pm_ops,
 		.of_match_table = imx_sgtl5000_dt_ids,
 	},
 	.probe = imx_sgtl5000_probe,
sound/soc/fsl/imx-wm8962.c +1 -0
index 6c60666..72064e9 100644
@@ -310,6 +310,7 @@ static struct platform_driver imx_wm8962_driver = {
 	.driver = {
 		.name = "imx-wm8962",
 		.owner = THIS_MODULE,
+		.pm = &snd_soc_pm_ops,
 		.of_match_table = imx_wm8962_dt_ids,
 	},
 	.probe = imx_wm8962_probe,
Signature · 1 line
1.8.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Nicolin Chen

Add missing pm to current machine drivers so that all of them would correctly do suspend/resume.

Applied all, thanks.