ASoC: fsl: Add missing pm to current machine drivers
authorNicolin Chen <b42378@freescale.com>
Thu, 24 Oct 2013 10:15:29 +0000 (18:15 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 24 Oct 2013 10:22:44 +0000 (11:22 +0100)
Add missing pm to current machine drivers so that all of them would
correctly do suspend/resume.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/imx-mc13783.c
sound/soc/fsl/imx-sgtl5000.c
sound/soc/fsl/imx-wm8962.c

index a2fd7321b5a9a1bbd321f756af14fd9f071a372f..79cee782dbbf9184264e69383b6d5a5ff1ba0fd7 100644 (file)
@@ -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
index ca1be1d9dcf0349b608f77367f5330ca7c2c6308..73da709069df40ae8351a61a16f1f5b6c1a0ca7a 100644 (file)
@@ -202,6 +202,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,
index 722afe69169e904798974115292159a89a08ba18..8e5b2c6a16d9c723d0259e858c87ca8fb08ec099 100644 (file)
@@ -311,6 +311,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,