From 529a1cb73dc2f1b743f816fe77ce2ed62adb6376 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Tue, 17 Mar 2020 14:45:08 +0800 Subject: =?UTF-8?q?MLK-23618-4:=20Revert=20"ASoC:=20fsl=5Fspdif=EF=BC=9ASu?= =?UTF-8?q?pport=20multi=20power=20domains"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Daniel Baluta --- sound/soc/fsl/fsl_spdif.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'sound/soc/fsl/fsl_spdif.c') 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 #include #include -#include #include #include @@ -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); -- cgit v1.2.3