summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_sai.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-03-17 14:36:06 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-03-18 15:41:20 +0800
commit1fe9eac9114bbce35db7a331a0fc92e66d52a39c (patch)
treed83903d8fb1d65aceddd2ce86f4fdb4ea2bfb1fc /sound/soc/fsl/fsl_sai.c
parentd1359d93829e24d41da70cff28fa40bee805dc19 (diff)
MLK-23618-1: Revert "ASoC: fsl_sai: support multi power domain"
This reverts commit 53915e7ea973851a5d9b60681a2718bbdeb5439e. 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_sai.c')
-rw-r--r--sound/soc/fsl/fsl_sai.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 1b176b81ff24..32f584f558d0 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -16,7 +16,6 @@
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/pm_qos.h>
-#include <linux/pm_domain.h>
#include <sound/core.h>
#include <sound/dmaengine_pcm.h>
#include <sound/pcm_params.h>
@@ -1438,7 +1437,6 @@ static int fsl_sai_probe(struct platform_device *pdev)
int index;
struct regmap_config fsl_sai_regmap_config = fsl_sai_v2_regmap_config;
unsigned long irqflags = 0;
- int num_domains = 0;
sai = devm_kzalloc(&pdev->dev, sizeof(*sai), GFP_KERNEL);
if (!sai)
@@ -1491,26 +1489,6 @@ static int fsl_sai_probe(struct platform_device *pdev)
}
}
- num_domains = of_count_phandle_with_args(np, "power-domains",
- "#power-domain-cells");
- if (num_domains > 1) {
- 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);
- }
- }
-
sai->pll8k_clk = devm_clk_get(&pdev->dev, "pll8k");
if (IS_ERR(sai->pll8k_clk))
sai->pll8k_clk = NULL;