summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-03-17 14:38:53 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-03-18 15:41:26 +0800
commit6ee466819da5425e2902008dda2e38dcbd3d97e2 (patch)
tree7d131febc5513b6418e29adb185ed2d26f4c432e
parent1fe9eac9114bbce35db7a331a0fc92e66d52a39c (diff)
MLK-23618-2: Revert "ASoC: fsl_esai: support multi power domain"
This reverts commit 4058ef0bb857b29c8b8e0ccd4558b6e82a3a9e5d. The power domain of clock should be controlled by clock driver, We don't need to control it in audio driver, so we don't need to support multi power domain in audio driver. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
-rw-r--r--sound/soc/fsl/fsl_esai.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c
index c056bb4f74c2..2bed950d462b 100644
--- a/sound/soc/fsl/fsl_esai.c
+++ b/sound/soc/fsl/fsl_esai.c
@@ -10,7 +10,6 @@
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/pm_runtime.h>
-#include <linux/pm_domain.h>
#include <sound/dmaengine_pcm.h>
#include <sound/pcm_params.h>
@@ -996,7 +995,6 @@ static int fsl_esai_probe(struct platform_device *pdev)
void __iomem *regs;
int irq, ret;
unsigned long irqflag = 0;
- int i, num_domains = 0;
esai_priv = devm_kzalloc(&pdev->dev, sizeof(*esai_priv), GFP_KERNEL);
if (!esai_priv)
@@ -1053,24 +1051,6 @@ static int fsl_esai_probe(struct platform_device *pdev)
return irq;
}
- num_domains = of_count_phandle_with_args(np, "power-domains",
- "#power-domain-cells");
- for (i = 0; i < num_domains; i++) {
- struct device *pd_dev;
- struct device_link *link;
-
- pd_dev = dev_pm_domain_attach_by_id(&pdev->dev, i);
- if (IS_ERR(pd_dev))
- return PTR_ERR(pd_dev);
-
- link = device_link_add(&pdev->dev, pd_dev,
- DL_FLAG_STATELESS |
- DL_FLAG_PM_RUNTIME |
- DL_FLAG_RPM_ACTIVE);
- if (IS_ERR(link))
- return PTR_ERR(link);
- }
-
/* ESAI shared interrupt */
if (of_property_read_bool(np, "shared-interrupt"))
irqflag = IRQF_SHARED;