diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2020-03-17 14:45:08 +0800 |
---|---|---|
committer | Shengjiu Wang <shengjiu.wang@nxp.com> | 2020-03-18 15:41:36 +0800 |
commit | 529a1cb73dc2f1b743f816fe77ce2ed62adb6376 (patch) | |
tree | 83e2018fbfe96b49b3c249b888326b2c58090050 /sound/soc/fsl/fsl_spdif.c | |
parent | b1024cf8bbf23f847c71426fddb83eb4162572df (diff) |
MLK-23618-4: Revert "ASoC: fsl_spdif:Support multi power domains"
This reverts commit bd7b26036e8793d7fb915da6206706e3e6620ffa.
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_spdif.c')
-rw-r--r-- | sound/soc/fsl/fsl_spdif.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index 08d75e6388ca..c691ae2b4284 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -18,7 +18,6 @@ #include <linux/of_irq.h> #include <linux/regmap.h> #include <linux/pm_runtime.h> -#include <linux/pm_domain.h> #include <linux/busfreq-imx.h> #include <sound/asoundef.h> @@ -1362,7 +1361,6 @@ static int fsl_spdif_probe(struct platform_device *pdev) void __iomem *regs; int irq, ret, i; char tmp[16]; - int num_domains = 0; if (!np) return -ENODEV; @@ -1428,24 +1426,6 @@ static int fsl_spdif_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); - } - for (i = 0; i < STC_TXCLK_SRC_MAX; i++) { sprintf(tmp, "rxtx%d", i); spdif_priv->txclk[i] = devm_clk_get(&pdev->dev, tmp); |