summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_asrc.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-03-17 14:39:11 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-03-18 15:41:31 +0800
commitb1024cf8bbf23f847c71426fddb83eb4162572df (patch)
tree3d57d98964821d3bfb5581fd841c3982bc515670 /sound/soc/fsl/fsl_asrc.c
parent6ee466819da5425e2902008dda2e38dcbd3d97e2 (diff)
MLK-23618-3: Revert "ASoC: fsl_asrc: support multi power domain"
This reverts commit 442ad6fd0c22a2e39aa916b248dc652b9da9a30f. 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>
Diffstat (limited to 'sound/soc/fsl/fsl_asrc.c')
-rw-r--r--sound/soc/fsl/fsl_asrc.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c
index 0b6f7c09804f..81a3fa9b1d9c 100644
--- a/sound/soc/fsl/fsl_asrc.c
+++ b/sound/soc/fsl/fsl_asrc.c
@@ -16,7 +16,6 @@
#include <linux/pm_runtime.h>
#include <linux/miscdevice.h>
#include <linux/sched/signal.h>
-#include <linux/pm_domain.h>
#include <sound/dmaengine_pcm.h>
#include <sound/pcm_params.h>
@@ -1045,7 +1044,6 @@ static int fsl_asrc_probe(struct platform_device *pdev)
void __iomem *regs;
int irq, ret, i;
char tmp[16];
- int num_domains = 0;
asrc_priv = devm_kzalloc(&pdev->dev, sizeof(*asrc_priv), GFP_KERNEL);
if (!asrc_priv)
@@ -1106,24 +1104,6 @@ static int fsl_asrc_probe(struct platform_device *pdev)
}
}
- 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);
- }
-
if (of_device_is_compatible(np, "fsl,imx35-asrc")) {
asrc_priv->channel_bits = 3;
strncpy(asrc_priv->name, "mxc_asrc",