MLK-16350-2: ASoC: fsl_mqs: enable the pm_runtime
authorShengjiu Wang <shengjiu.wang@freescale.com>
Fri, 1 Sep 2017 05:38:14 +0000 (13:38 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:25 +0000 (15:38 -0500)
enable the pm_runtime, the power domains wil be disabled when
mqs is idle.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
sound/soc/codecs/fsl_mqs.c

index daf75fc..4bc47ee 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/moduleparam.h>
 #include <linux/mfd/syscon.h>
 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
+#include <linux/pm_runtime.h>
 #include <linux/of.h>
 #include <linux/pm.h>
 #include <linux/slab.h>
@@ -275,6 +276,7 @@ static int fsl_mqs_probe(struct platform_device *pdev)
        }
 
        dev_set_drvdata(&pdev->dev, mqs_priv);
+       pm_runtime_enable(&pdev->dev);
 
        return snd_soc_register_codec(&pdev->dev, &soc_codec_fsl_mqs,
                        &fsl_mqs_dai, 1);