linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code
@ 2019-07-27 15:07 YueHaibing
  2019-07-27 15:07 ` [PATCH -next 01/34] ASoC: tegra20_das: " YueHaibing
                   ` (33 more replies)
  0 siblings, 34 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

devm_platform_ioremap_resource() internally have platform_get_resource()
and devm_ioremap_resource() in it. So instead of calling them separately
use devm_platform_ioremap_resource() directly.

YueHaibing (34):
  ASoC: tegra20_das: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: tegra: use devm_platform_ioremap_resource() to simplify code
  ASoC: rockchip: use devm_platform_ioremap_resource() to simplify code
  ASoC: ep93xx-i2s: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: mt8173: use devm_platform_ioremap_resource() to simplify code
  ASoC: mt6797: use devm_platform_ioremap_resource() to simplify code
  ASoC: imx-audmux: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: fsl_audmix: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: bcm2835-i2s: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: sirf: use devm_platform_ioremap_resource() to simplify code
  ASoC: mxs-saif: use devm_platform_ioremap_resource() to simplify code
  ASoC: spear: use devm_platform_ioremap_resource() to simplify code
  ASoC: kirkwood-i2s: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: xtfpga-i2s: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: stm32: sai: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: codecs: msm8916-wcd: use devm_platform_ioremap_resource() to
    simplify code
  ASoC: codecs: jz4725b: use devm_platform_ioremap_resource() to
    simplify code
  ASoC: mmp-sspa: use devm_platform_ioremap_resource() to simplify code
  ASoC: jz4740: use devm_platform_ioremap_resource() to simplify code
  ASoC: inno_rk3036: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: uniphier: evea: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: uniphier: aio-dma: use devm_platform_ioremap_resource() to
    simplify code
  ASoC: psc-ac97: use devm_platform_ioremap_resource() to simplify code
  ASoC: au1x: psc-i2s: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: meson: g12a-tohdmitx: use devm_platform_ioremap_resource() to
    simplify code
  ASoC: meson: axg-tdm-formatter: use devm_platform_ioremap_resource()
    to simplify code
  ASoC: meson: axg-pdm: use devm_platform_ioremap_resource() to simplify
    code
  ASoC: meson: axg-spdifin: use devm_platform_ioremap_resource() to
    simplify code
  ASoC: meson: axg-spdifout: use devm_platform_ioremap_resource() to
    simplify code
  ASoC: meson: axg-fifo: use devm_platform_ioremap_resource() to
    simplify code
  ASoC: xlnx: use devm_platform_ioremap_resource() to simplify code
  ASoC: sun8i-codec-analog: use devm_platform_ioremap_resource() to
    simplify code
  ASoC: sunxi: sun50i-codec-analog: use devm_platform_ioremap_resource()
    to simplify code
  ASoC: sun8i-codec: use devm_platform_ioremap_resource() to simplify
    code

 sound/soc/au1x/psc-ac97.c                  | 5 ++---
 sound/soc/au1x/psc-i2s.c                   | 5 ++---
 sound/soc/bcm/bcm2835-i2s.c                | 4 +---
 sound/soc/cirrus/ep93xx-i2s.c              | 4 +---
 sound/soc/codecs/inno_rk3036.c             | 4 +---
 sound/soc/codecs/jz4725b.c                 | 4 +---
 sound/soc/codecs/jz4740.c                  | 4 +---
 sound/soc/codecs/msm8916-wcd-digital.c     | 4 +---
 sound/soc/codecs/rk3328_codec.c            | 4 +---
 sound/soc/fsl/fsl_audmix.c                 | 4 +---
 sound/soc/fsl/imx-audmux.c                 | 4 +---
 sound/soc/kirkwood/kirkwood-i2s.c          | 4 +---
 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | 5 +----
 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 4 +---
 sound/soc/meson/axg-fifo.c                 | 4 +---
 sound/soc/meson/axg-pdm.c                  | 4 +---
 sound/soc/meson/axg-spdifin.c              | 4 +---
 sound/soc/meson/axg-spdifout.c             | 4 +---
 sound/soc/meson/axg-tdm-formatter.c        | 4 +---
 sound/soc/meson/g12a-tohdmitx.c            | 4 +---
 sound/soc/mxs/mxs-saif.c                   | 5 +----
 sound/soc/pxa/mmp-sspa.c                   | 4 +---
 sound/soc/sirf/sirf-usp.c                  | 4 +---
 sound/soc/spear/spdif_in.c                 | 5 ++---
 sound/soc/stm/stm32_sai.c                  | 4 +---
 sound/soc/sunxi/sun50i-codec-analog.c      | 4 +---
 sound/soc/sunxi/sun8i-codec-analog.c       | 4 +---
 sound/soc/sunxi/sun8i-codec.c              | 4 +---
 sound/soc/tegra/tegra20_das.c              | 4 +---
 sound/soc/tegra/tegra30_i2s.c              | 4 +---
 sound/soc/uniphier/aio-dma.c               | 4 +---
 sound/soc/uniphier/evea.c                  | 4 +---
 sound/soc/xilinx/xlnx_i2s.c                | 4 +---
 sound/soc/xilinx/xlnx_spdif.c              | 3 +--
 sound/soc/xtensa/xtfpga-i2s.c              | 4 +---
 35 files changed, 38 insertions(+), 106 deletions(-)

-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 35+ messages in thread

* [PATCH -next 01/34] ASoC: tegra20_das: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 02/34] ASoC: tegra: " YueHaibing
                   ` (32 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/tegra/tegra20_das.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/tegra/tegra20_das.c b/sound/soc/tegra/tegra20_das.c
index 10f9c3b..1070b27 100644
--- a/sound/soc/tegra/tegra20_das.c
+++ b/sound/soc/tegra/tegra20_das.c
@@ -120,7 +120,6 @@ static const struct regmap_config tegra20_das_regmap_config = {
 
 static int tegra20_das_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	void __iomem *regs;
 	int ret = 0;
 
@@ -134,8 +133,7 @@ static int tegra20_das_probe(struct platform_device *pdev)
 	}
 	das->dev = &pdev->dev;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(&pdev->dev, res);
+	regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(regs)) {
 		ret = PTR_ERR(regs);
 		goto err;
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 02/34] ASoC: tegra: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
  2019-07-27 15:07 ` [PATCH -next 01/34] ASoC: tegra20_das: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 03/34] ASoC: rockchip: " YueHaibing
                   ` (31 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/tegra/tegra30_i2s.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c
index ac6983c..e6d548f 100644
--- a/sound/soc/tegra/tegra30_i2s.c
+++ b/sound/soc/tegra/tegra30_i2s.c
@@ -368,7 +368,6 @@ static int tegra30_i2s_platform_probe(struct platform_device *pdev)
 	struct tegra30_i2s *i2s;
 	const struct of_device_id *match;
 	u32 cif_ids[2];
-	struct resource *mem;
 	void __iomem *regs;
 	int ret;
 
@@ -406,8 +405,7 @@ static int tegra30_i2s_platform_probe(struct platform_device *pdev)
 		goto err;
 	}
 
-	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(&pdev->dev, mem);
+	regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(regs)) {
 		ret = PTR_ERR(regs);
 		goto err_clk_put;
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 03/34] ASoC: rockchip: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
  2019-07-27 15:07 ` [PATCH -next 01/34] ASoC: tegra20_das: " YueHaibing
  2019-07-27 15:07 ` [PATCH -next 02/34] ASoC: tegra: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 04/34] ASoC: ep93xx-i2s: " YueHaibing
                   ` (30 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/codecs/rk3328_codec.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/codecs/rk3328_codec.c b/sound/soc/codecs/rk3328_codec.c
index 24f8f86..287c962 100644
--- a/sound/soc/codecs/rk3328_codec.c
+++ b/sound/soc/codecs/rk3328_codec.c
@@ -432,7 +432,6 @@ static int rk3328_platform_probe(struct platform_device *pdev)
 {
 	struct device_node *rk3328_np = pdev->dev.of_node;
 	struct rk3328_codec_priv *rk3328;
-	struct resource *res;
 	struct regmap *grf;
 	void __iomem *base;
 	int ret = 0;
@@ -482,8 +481,7 @@ static int rk3328_platform_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 04/34] ASoC: ep93xx-i2s: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (2 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 03/34] ASoC: rockchip: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 05/34] ASoC: mt8173: " YueHaibing
                   ` (29 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/cirrus/ep93xx-i2s.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/cirrus/ep93xx-i2s.c b/sound/soc/cirrus/ep93xx-i2s.c
index 0b4355e..7d9cf67 100644
--- a/sound/soc/cirrus/ep93xx-i2s.c
+++ b/sound/soc/cirrus/ep93xx-i2s.c
@@ -430,15 +430,13 @@ static const struct snd_soc_component_driver ep93xx_i2s_component = {
 static int ep93xx_i2s_probe(struct platform_device *pdev)
 {
 	struct ep93xx_i2s_info *info;
-	struct resource *res;
 	int err;
 
 	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
 	if (!info)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	info->regs = devm_ioremap_resource(&pdev->dev, res);
+	info->regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(info->regs))
 		return PTR_ERR(info->regs);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 05/34] ASoC: mt8173: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (3 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 04/34] ASoC: ep93xx-i2s: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 06/34] ASoC: mt6797: " YueHaibing
                   ` (28 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c b/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
index 0382896..90bd2c9 100644
--- a/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
+++ b/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
@@ -1056,7 +1056,6 @@ static int mt8173_afe_pcm_dev_probe(struct platform_device *pdev)
 	int irq_id;
 	struct mtk_base_afe *afe;
 	struct mt8173_afe_private *afe_priv;
-	struct resource *res;
 
 	ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(33));
 	if (ret)
@@ -1086,8 +1085,7 @@ static int mt8173_afe_pcm_dev_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	afe->base_addr = devm_ioremap_resource(&pdev->dev, res);
+	afe->base_addr = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(afe->base_addr))
 		return PTR_ERR(afe->base_addr);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 06/34] ASoC: mt6797: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (4 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 05/34] ASoC: mt8173: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 07/34] ASoC: imx-audmux: " YueHaibing
                   ` (27 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c b/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
index 08a6532..dea0e07 100644
--- a/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
+++ b/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
@@ -749,7 +749,6 @@ static int mt6797_afe_pcm_dev_probe(struct platform_device *pdev)
 {
 	struct mtk_base_afe *afe;
 	struct mt6797_afe_private *afe_priv;
-	struct resource *res;
 	struct device *dev;
 	int i, irq_id, ret;
 
@@ -774,9 +773,7 @@ static int mt6797_afe_pcm_dev_probe(struct platform_device *pdev)
 	}
 
 	/* regmap init */
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-
-	afe->base_addr = devm_ioremap_resource(&pdev->dev, res);
+	afe->base_addr = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(afe->base_addr))
 		return PTR_ERR(afe->base_addr);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 07/34] ASoC: imx-audmux: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (5 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 06/34] ASoC: mt6797: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 08/34] ASoC: fsl_audmix: " YueHaibing
                   ` (26 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/fsl/imx-audmux.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c
index b2351cd..7595f24 100644
--- a/sound/soc/fsl/imx-audmux.c
+++ b/sound/soc/fsl/imx-audmux.c
@@ -298,12 +298,10 @@ static int imx_audmux_parse_dt_defaults(struct platform_device *pdev,
 
 static int imx_audmux_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	const struct of_device_id *of_id =
 			of_match_device(imx_audmux_dt_ids, &pdev->dev);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	audmux_base = devm_ioremap_resource(&pdev->dev, res);
+	audmux_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(audmux_base))
 		return PTR_ERR(audmux_base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 08/34] ASoC: fsl_audmix: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (6 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 07/34] ASoC: imx-audmux: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 09/34] ASoC: bcm2835-i2s: " YueHaibing
                   ` (25 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/fsl/fsl_audmix.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/fsl/fsl_audmix.c b/sound/soc/fsl/fsl_audmix.c
index 3897a54..c7e4e97 100644
--- a/sound/soc/fsl/fsl_audmix.c
+++ b/sound/soc/fsl/fsl_audmix.c
@@ -458,7 +458,6 @@ static int fsl_audmix_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
 	struct fsl_audmix *priv;
-	struct resource *res;
 	const char *mdrv;
 	const struct of_device_id *of_id;
 	void __iomem *regs;
@@ -475,8 +474,7 @@ static int fsl_audmix_probe(struct platform_device *pdev)
 		return -ENOMEM;
 
 	/* Get the addresses */
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(dev, res);
+	regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 09/34] ASoC: bcm2835-i2s: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (7 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 08/34] ASoC: fsl_audmix: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 10/34] ASoC: sirf: " YueHaibing
                   ` (24 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/bcm/bcm2835-i2s.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/bcm/bcm2835-i2s.c b/sound/soc/bcm/bcm2835-i2s.c
index 5ef80f3..e6a12e2 100644
--- a/sound/soc/bcm/bcm2835-i2s.c
+++ b/sound/soc/bcm/bcm2835-i2s.c
@@ -828,7 +828,6 @@ static int bcm2835_i2s_probe(struct platform_device *pdev)
 {
 	struct bcm2835_i2s_dev *dev;
 	int ret;
-	struct resource *mem;
 	void __iomem *base;
 	const __be32 *addr;
 	dma_addr_t dma_base;
@@ -848,8 +847,7 @@ static int bcm2835_i2s_probe(struct platform_device *pdev)
 	}
 
 	/* Request ioarea */
-	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, mem);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 10/34] ASoC: sirf: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (8 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 09/34] ASoC: bcm2835-i2s: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 11/34] ASoC: mxs-saif: " YueHaibing
                   ` (23 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/sirf/sirf-usp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/sirf/sirf-usp.c b/sound/soc/sirf/sirf-usp.c
index 8bab119c..2af0c6f 100644
--- a/sound/soc/sirf/sirf-usp.c
+++ b/sound/soc/sirf/sirf-usp.c
@@ -359,7 +359,6 @@ static int sirf_usp_pcm_probe(struct platform_device *pdev)
 	int ret;
 	struct sirf_usp *usp;
 	void __iomem *base;
-	struct resource *mem_res;
 
 	usp = devm_kzalloc(&pdev->dev, sizeof(struct sirf_usp),
 			GFP_KERNEL);
@@ -368,8 +367,7 @@ static int sirf_usp_pcm_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, usp);
 
-	mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, mem_res);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 	usp->regmap = devm_regmap_init_mmio(&pdev->dev, base,
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 11/34] ASoC: mxs-saif: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (9 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 10/34] ASoC: sirf: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 12/34] ASoC: spear: " YueHaibing
                   ` (22 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/mxs/mxs-saif.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs-saif.c
index 269b6d6..a2c7942 100644
--- a/sound/soc/mxs/mxs-saif.c
+++ b/sound/soc/mxs/mxs-saif.c
@@ -732,7 +732,6 @@ static int mxs_saif_mclk_init(struct platform_device *pdev)
 static int mxs_saif_probe(struct platform_device *pdev)
 {
 	struct device_node *np = pdev->dev.of_node;
-	struct resource *iores;
 	struct mxs_saif *saif;
 	int irq, ret = 0;
 	struct device_node *master;
@@ -786,9 +785,7 @@ static int mxs_saif_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-
-	saif->base = devm_ioremap_resource(&pdev->dev, iores);
+	saif->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(saif->base))
 		return PTR_ERR(saif->base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 12/34] ASoC: spear: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (10 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 11/34] ASoC: mxs-saif: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 13/34] ASoC: kirkwood-i2s: " YueHaibing
                   ` (21 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/spear/spdif_in.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sound/soc/spear/spdif_in.c b/sound/soc/spear/spdif_in.c
index 78a6a36..4b68d6e 100644
--- a/sound/soc/spear/spdif_in.c
+++ b/sound/soc/spear/spdif_in.c
@@ -202,12 +202,11 @@ static int spdif_in_probe(struct platform_device *pdev)
 {
 	struct spdif_in_dev *host;
 	struct spear_spdif_platform_data *pdata;
-	struct resource *res, *res_fifo;
+	struct resource *res_fifo;
 	void __iomem *io_base;
 	int ret;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	io_base = devm_ioremap_resource(&pdev->dev, res);
+	io_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(io_base))
 		return PTR_ERR(io_base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 13/34] ASoC: kirkwood-i2s: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (11 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 12/34] ASoC: spear: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 14/34] ASoC: xtfpga-i2s: " YueHaibing
                   ` (20 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/kirkwood/kirkwood-i2s.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c
index 3446a113..5076ec4 100644
--- a/sound/soc/kirkwood/kirkwood-i2s.c
+++ b/sound/soc/kirkwood/kirkwood-i2s.c
@@ -523,7 +523,6 @@ static int kirkwood_i2s_dev_probe(struct platform_device *pdev)
 	struct kirkwood_asoc_platform_data *data = pdev->dev.platform_data;
 	struct snd_soc_dai_driver *soc_dai = kirkwood_i2s_dai;
 	struct kirkwood_dma_data *priv;
-	struct resource *mem;
 	struct device_node *np = pdev->dev.of_node;
 	int err;
 
@@ -533,8 +532,7 @@ static int kirkwood_i2s_dev_probe(struct platform_device *pdev)
 
 	dev_set_drvdata(&pdev->dev, priv);
 
-	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	priv->io = devm_ioremap_resource(&pdev->dev, mem);
+	priv->io = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(priv->io))
 		return PTR_ERR(priv->io);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 14/34] ASoC: xtfpga-i2s: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (12 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 13/34] ASoC: kirkwood-i2s: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 15/34] ASoC: stm32: sai: " YueHaibing
                   ` (19 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/xtensa/xtfpga-i2s.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/xtensa/xtfpga-i2s.c b/sound/soc/xtensa/xtfpga-i2s.c
index 9ce2c75..9da395d 100644
--- a/sound/soc/xtensa/xtfpga-i2s.c
+++ b/sound/soc/xtensa/xtfpga-i2s.c
@@ -531,7 +531,6 @@ static int xtfpga_i2s_runtime_resume(struct device *dev)
 static int xtfpga_i2s_probe(struct platform_device *pdev)
 {
 	struct xtfpga_i2s *i2s;
-	struct resource *mem;
 	int err, irq;
 
 	i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL);
@@ -543,8 +542,7 @@ static int xtfpga_i2s_probe(struct platform_device *pdev)
 	i2s->dev = &pdev->dev;
 	dev_dbg(&pdev->dev, "dev: %p, i2s: %p\n", &pdev->dev, i2s);
 
-	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	i2s->regs = devm_ioremap_resource(&pdev->dev, mem);
+	i2s->regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(i2s->regs)) {
 		err = PTR_ERR(i2s->regs);
 		goto err;
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 15/34] ASoC: stm32: sai: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (13 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 14/34] ASoC: xtfpga-i2s: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 16/34] ASoC: codecs: msm8916-wcd: " YueHaibing
                   ` (18 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/stm/stm32_sai.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/stm/stm32_sai.c b/sound/soc/stm/stm32_sai.c
index 63f68e6..1ac5103c 100644
--- a/sound/soc/stm/stm32_sai.c
+++ b/sound/soc/stm/stm32_sai.c
@@ -152,7 +152,6 @@ static int stm32_sai_probe(struct platform_device *pdev)
 {
 	struct stm32_sai_data *sai;
 	struct reset_control *rst;
-	struct resource *res;
 	const struct of_device_id *of_id;
 	u32 val;
 	int ret;
@@ -161,8 +160,7 @@ static int stm32_sai_probe(struct platform_device *pdev)
 	if (!sai)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	sai->base = devm_ioremap_resource(&pdev->dev, res);
+	sai->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(sai->base))
 		return PTR_ERR(sai->base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 16/34] ASoC: codecs: msm8916-wcd: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (14 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 15/34] ASoC: stm32: sai: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 17/34] ASoC: codecs: jz4725b: " YueHaibing
                   ` (17 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/codecs/msm8916-wcd-digital.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/codecs/msm8916-wcd-digital.c b/sound/soc/codecs/msm8916-wcd-digital.c
index 1db7e43..9fa5d44 100644
--- a/sound/soc/codecs/msm8916-wcd-digital.c
+++ b/sound/soc/codecs/msm8916-wcd-digital.c
@@ -1143,7 +1143,6 @@ static int msm8916_wcd_digital_probe(struct platform_device *pdev)
 	struct msm8916_wcd_digital_priv *priv;
 	struct device *dev = &pdev->dev;
 	void __iomem *base;
-	struct resource *mem_res;
 	struct regmap *digital_map;
 	int ret;
 
@@ -1151,8 +1150,7 @@ static int msm8916_wcd_digital_probe(struct platform_device *pdev)
 	if (!priv)
 		return -ENOMEM;
 
-	mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, mem_res);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 17/34] ASoC: codecs: jz4725b: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (15 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 16/34] ASoC: codecs: msm8916-wcd: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 18/34] ASoC: mmp-sspa: " YueHaibing
                   ` (16 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/codecs/jz4725b.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/codecs/jz4725b.c b/sound/soc/codecs/jz4725b.c
index 766354c..2567a5d 100644
--- a/sound/soc/codecs/jz4725b.c
+++ b/sound/soc/codecs/jz4725b.c
@@ -545,15 +545,13 @@ static int jz4725b_codec_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
 	struct jz_icdc *icdc;
-	struct resource *mem;
 	int ret;
 
 	icdc = devm_kzalloc(dev, sizeof(*icdc), GFP_KERNEL);
 	if (!icdc)
 		return -ENOMEM;
 
-	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	icdc->base = devm_ioremap_resource(dev, mem);
+	icdc->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(icdc->base))
 		return PTR_ERR(icdc->base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 18/34] ASoC: mmp-sspa: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (16 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 17/34] ASoC: codecs: jz4725b: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 19/34] ASoC: jz4740: " YueHaibing
                   ` (15 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/pxa/mmp-sspa.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/pxa/mmp-sspa.c b/sound/soc/pxa/mmp-sspa.c
index 72f4364..e3e5425 100644
--- a/sound/soc/pxa/mmp-sspa.c
+++ b/sound/soc/pxa/mmp-sspa.c
@@ -399,7 +399,6 @@ static const struct snd_soc_component_driver mmp_sspa_component = {
 static int asoc_mmp_sspa_probe(struct platform_device *pdev)
 {
 	struct sspa_priv *priv;
-	struct resource *res;
 
 	priv = devm_kzalloc(&pdev->dev,
 				sizeof(struct sspa_priv), GFP_KERNEL);
@@ -417,8 +416,7 @@ static int asoc_mmp_sspa_probe(struct platform_device *pdev)
 	if (priv->dma_params == NULL)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	priv->sspa->mmio_base = devm_ioremap_resource(&pdev->dev, res);
+	priv->sspa->mmio_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(priv->sspa->mmio_base))
 		return PTR_ERR(priv->sspa->mmio_base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 19/34] ASoC: jz4740: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (17 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 18/34] ASoC: mmp-sspa: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 20/34] ASoC: inno_rk3036: " YueHaibing
                   ` (14 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/codecs/jz4740.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/codecs/jz4740.c b/sound/soc/codecs/jz4740.c
index 974e17f..460aa1f 100644
--- a/sound/soc/codecs/jz4740.c
+++ b/sound/soc/codecs/jz4740.c
@@ -318,7 +318,6 @@ static int jz4740_codec_probe(struct platform_device *pdev)
 {
 	int ret;
 	struct jz4740_codec *jz4740_codec;
-	struct resource *mem;
 	void __iomem *base;
 
 	jz4740_codec = devm_kzalloc(&pdev->dev, sizeof(*jz4740_codec),
@@ -326,8 +325,7 @@ static int jz4740_codec_probe(struct platform_device *pdev)
 	if (!jz4740_codec)
 		return -ENOMEM;
 
-	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, mem);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 20/34] ASoC: inno_rk3036: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (18 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 19/34] ASoC: jz4740: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 21/34] ASoC: uniphier: evea: " YueHaibing
                   ` (13 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/codecs/inno_rk3036.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/codecs/inno_rk3036.c b/sound/soc/codecs/inno_rk3036.c
index 7feedbb..14d8fe1 100644
--- a/sound/soc/codecs/inno_rk3036.c
+++ b/sound/soc/codecs/inno_rk3036.c
@@ -405,7 +405,6 @@ static int rk3036_codec_platform_probe(struct platform_device *pdev)
 {
 	struct rk3036_codec_priv *priv;
 	struct device_node *of_node = pdev->dev.of_node;
-	struct resource *res;
 	void __iomem *base;
 	struct regmap *grf;
 	int ret;
@@ -414,8 +413,7 @@ static int rk3036_codec_platform_probe(struct platform_device *pdev)
 	if (!priv)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 21/34] ASoC: uniphier: evea: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (19 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 20/34] ASoC: inno_rk3036: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 22/34] ASoC: uniphier: aio-dma: " YueHaibing
                   ` (12 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/uniphier/evea.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/uniphier/evea.c b/sound/soc/uniphier/evea.c
index f9c1016..d27e9ca 100644
--- a/sound/soc/uniphier/evea.c
+++ b/sound/soc/uniphier/evea.c
@@ -451,7 +451,6 @@ static const struct regmap_config evea_regmap_config = {
 static int evea_probe(struct platform_device *pdev)
 {
 	struct evea_priv *evea;
-	struct resource *res;
 	void __iomem *preg;
 	int ret;
 
@@ -475,8 +474,7 @@ static int evea_probe(struct platform_device *pdev)
 	if (IS_ERR(evea->rst_exiv))
 		return PTR_ERR(evea->rst_exiv);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	preg = devm_ioremap_resource(&pdev->dev, res);
+	preg = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(preg))
 		return PTR_ERR(preg);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 22/34] ASoC: uniphier: aio-dma: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (20 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 21/34] ASoC: uniphier: evea: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 23/34] ASoC: psc-ac97: " YueHaibing
                   ` (11 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/uniphier/aio-dma.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/uniphier/aio-dma.c b/sound/soc/uniphier/aio-dma.c
index fa001d3..862346d 100644
--- a/sound/soc/uniphier/aio-dma.c
+++ b/sound/soc/uniphier/aio-dma.c
@@ -276,12 +276,10 @@ int uniphier_aiodma_soc_register_platform(struct platform_device *pdev)
 {
 	struct uniphier_aio_chip *chip = platform_get_drvdata(pdev);
 	struct device *dev = &pdev->dev;
-	struct resource *res;
 	void __iomem *preg;
 	int irq, ret;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	preg = devm_ioremap_resource(dev, res);
+	preg = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(preg))
 		return PTR_ERR(preg);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 23/34] ASoC: psc-ac97: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (21 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 22/34] ASoC: uniphier: aio-dma: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 24/34] ASoC: au1x: psc-i2s: " YueHaibing
                   ` (10 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/au1x/psc-ac97.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sound/soc/au1x/psc-ac97.c b/sound/soc/au1x/psc-ac97.c
index 21e5f6a..08bc04e 100644
--- a/sound/soc/au1x/psc-ac97.c
+++ b/sound/soc/au1x/psc-ac97.c
@@ -363,7 +363,7 @@ static const struct snd_soc_component_driver au1xpsc_ac97_component = {
 static int au1xpsc_ac97_drvprobe(struct platform_device *pdev)
 {
 	int ret;
-	struct resource *iores, *dmares;
+	struct resource *dmares;
 	unsigned long sel;
 	struct au1xpsc_audio_data *wd;
 
@@ -374,8 +374,7 @@ static int au1xpsc_ac97_drvprobe(struct platform_device *pdev)
 
 	mutex_init(&wd->lock);
 
-	iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	wd->mmio = devm_ioremap_resource(&pdev->dev, iores);
+	wd->mmio = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(wd->mmio))
 		return PTR_ERR(wd->mmio);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 24/34] ASoC: au1x: psc-i2s: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (22 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 23/34] ASoC: psc-ac97: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 25/34] ASoC: meson: g12a-tohdmitx: " YueHaibing
                   ` (9 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/au1x/psc-i2s.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sound/soc/au1x/psc-i2s.c b/sound/soc/au1x/psc-i2s.c
index 076303f..767ce95 100644
--- a/sound/soc/au1x/psc-i2s.c
+++ b/sound/soc/au1x/psc-i2s.c
@@ -291,7 +291,7 @@ static const struct snd_soc_component_driver au1xpsc_i2s_component = {
 
 static int au1xpsc_i2s_drvprobe(struct platform_device *pdev)
 {
-	struct resource *iores, *dmares;
+	struct resource *dmares;
 	unsigned long sel;
 	struct au1xpsc_audio_data *wd;
 
@@ -300,8 +300,7 @@ static int au1xpsc_i2s_drvprobe(struct platform_device *pdev)
 	if (!wd)
 		return -ENOMEM;
 
-	iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	wd->mmio = devm_ioremap_resource(&pdev->dev, iores);
+	wd->mmio = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(wd->mmio))
 		return PTR_ERR(wd->mmio);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 25/34] ASoC: meson: g12a-tohdmitx: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (23 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 24/34] ASoC: au1x: psc-i2s: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 26/34] ASoC: meson: axg-tdm-formatter: " YueHaibing
                   ` (8 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/meson/g12a-tohdmitx.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/meson/g12a-tohdmitx.c b/sound/soc/meson/g12a-tohdmitx.c
index 707ccb1..6ae0c4f 100644
--- a/sound/soc/meson/g12a-tohdmitx.c
+++ b/sound/soc/meson/g12a-tohdmitx.c
@@ -378,12 +378,10 @@ MODULE_DEVICE_TABLE(of, g12a_tohdmitx_of_match);
 static int g12a_tohdmitx_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
-	struct resource *res;
 	void __iomem *regs;
 	struct regmap *map;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(dev, res);
+	regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 26/34] ASoC: meson: axg-tdm-formatter: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (24 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 25/34] ASoC: meson: g12a-tohdmitx: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 27/34] ASoC: meson: axg-pdm: " YueHaibing
                   ` (7 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/meson/axg-tdm-formatter.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/meson/axg-tdm-formatter.c b/sound/soc/meson/axg-tdm-formatter.c
index 2e49820..21c735a 100644
--- a/sound/soc/meson/axg-tdm-formatter.c
+++ b/sound/soc/meson/axg-tdm-formatter.c
@@ -253,7 +253,6 @@ int axg_tdm_formatter_probe(struct platform_device *pdev)
 	struct device *dev = &pdev->dev;
 	const struct axg_tdm_formatter_driver *drv;
 	struct axg_tdm_formatter *formatter;
-	struct resource *res;
 	void __iomem *regs;
 	int ret;
 
@@ -269,8 +268,7 @@ int axg_tdm_formatter_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, formatter);
 	formatter->drv = drv;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(dev, res);
+	regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 27/34] ASoC: meson: axg-pdm: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (25 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 26/34] ASoC: meson: axg-tdm-formatter: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 28/34] ASoC: meson: axg-spdifin: " YueHaibing
                   ` (6 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/meson/axg-pdm.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/meson/axg-pdm.c b/sound/soc/meson/axg-pdm.c
index 9d56844..bfd37d4 100644
--- a/sound/soc/meson/axg-pdm.c
+++ b/sound/soc/meson/axg-pdm.c
@@ -585,7 +585,6 @@ static int axg_pdm_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
 	struct axg_pdm *priv;
-	struct resource *res;
 	void __iomem *regs;
 	int ret;
 
@@ -600,8 +599,7 @@ static int axg_pdm_probe(struct platform_device *pdev)
 		return -ENODEV;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(dev, res);
+	regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 28/34] ASoC: meson: axg-spdifin: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (26 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 27/34] ASoC: meson: axg-pdm: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 29/34] ASoC: meson: axg-spdifout: " YueHaibing
                   ` (5 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/meson/axg-spdifin.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/meson/axg-spdifin.c b/sound/soc/meson/axg-spdifin.c
index 01b2035..d0d09f9 100644
--- a/sound/soc/meson/axg-spdifin.c
+++ b/sound/soc/meson/axg-spdifin.c
@@ -453,7 +453,6 @@ static int axg_spdifin_probe(struct platform_device *pdev)
 	struct device *dev = &pdev->dev;
 	struct axg_spdifin *priv;
 	struct snd_soc_dai_driver *dai_drv;
-	struct resource *res;
 	void __iomem *regs;
 	int ret;
 
@@ -468,8 +467,7 @@ static int axg_spdifin_probe(struct platform_device *pdev)
 		return -ENODEV;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(dev, res);
+	regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 29/34] ASoC: meson: axg-spdifout: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (27 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 28/34] ASoC: meson: axg-spdifin: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 30/34] ASoC: meson: axg-fifo: " YueHaibing
                   ` (4 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/meson/axg-spdifout.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/meson/axg-spdifout.c b/sound/soc/meson/axg-spdifout.c
index 9dea528..7ce6aa97 100644
--- a/sound/soc/meson/axg-spdifout.c
+++ b/sound/soc/meson/axg-spdifout.c
@@ -401,7 +401,6 @@ static int axg_spdifout_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
 	struct axg_spdifout *priv;
-	struct resource *res;
 	void __iomem *regs;
 	int ret;
 
@@ -410,8 +409,7 @@ static int axg_spdifout_probe(struct platform_device *pdev)
 		return -ENOMEM;
 	platform_set_drvdata(pdev, priv);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(dev, res);
+	regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 30/34] ASoC: meson: axg-fifo: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (28 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 29/34] ASoC: meson: axg-spdifout: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 31/34] ASoC: xlnx: " YueHaibing
                   ` (3 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/meson/axg-fifo.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/meson/axg-fifo.c b/sound/soc/meson/axg-fifo.c
index 01c1c7d..80a3dde 100644
--- a/sound/soc/meson/axg-fifo.c
+++ b/sound/soc/meson/axg-fifo.c
@@ -314,7 +314,6 @@ int axg_fifo_probe(struct platform_device *pdev)
 	struct device *dev = &pdev->dev;
 	const struct axg_fifo_match_data *data;
 	struct axg_fifo *fifo;
-	struct resource *res;
 	void __iomem *regs;
 
 	data = of_device_get_match_data(dev);
@@ -328,8 +327,7 @@ int axg_fifo_probe(struct platform_device *pdev)
 		return -ENOMEM;
 	platform_set_drvdata(pdev, fifo);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(dev, res);
+	regs = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 31/34] ASoC: xlnx: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (29 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 30/34] ASoC: meson: axg-fifo: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 32/34] ASoC: sun8i-codec-analog: " YueHaibing
                   ` (2 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/xilinx/xlnx_i2s.c   | 4 +---
 sound/soc/xilinx/xlnx_spdif.c | 3 +--
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/sound/soc/xilinx/xlnx_i2s.c b/sound/soc/xilinx/xlnx_i2s.c
index 8b35316..cc641e5 100644
--- a/sound/soc/xilinx/xlnx_i2s.c
+++ b/sound/soc/xilinx/xlnx_i2s.c
@@ -95,7 +95,6 @@ MODULE_DEVICE_TABLE(of, xlnx_i2s_of_match);
 
 static int xlnx_i2s_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	void __iomem *base;
 	struct snd_soc_dai_driver *dai_drv;
 	int ret;
@@ -107,8 +106,7 @@ static int xlnx_i2s_probe(struct platform_device *pdev)
 	if (!dai_drv)
 		return -ENOMEM;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
diff --git a/sound/soc/xilinx/xlnx_spdif.c b/sound/soc/xilinx/xlnx_spdif.c
index 3b9000f..e2ca087 100644
--- a/sound/soc/xilinx/xlnx_spdif.c
+++ b/sound/soc/xilinx/xlnx_spdif.c
@@ -260,8 +260,7 @@ static int xlnx_spdif_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	ctx->base = devm_ioremap_resource(dev, res);
+	ctx->base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(ctx->base)) {
 		ret = PTR_ERR(ctx->base);
 		goto clk_err;
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 32/34] ASoC: sun8i-codec-analog: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (30 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 31/34] ASoC: xlnx: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 33/34] ASoC: sunxi: sun50i-codec-analog: " YueHaibing
  2019-07-27 15:07 ` [PATCH -next 34/34] ASoC: sun8i-codec: " YueHaibing
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/sunxi/sun8i-codec-analog.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/sunxi/sun8i-codec-analog.c b/sound/soc/sunxi/sun8i-codec-analog.c
index e92aeed..be872ee 100644
--- a/sound/soc/sunxi/sun8i-codec-analog.c
+++ b/sound/soc/sunxi/sun8i-codec-analog.c
@@ -819,12 +819,10 @@ MODULE_DEVICE_TABLE(of, sun8i_codec_analog_of_match);
 
 static int sun8i_codec_analog_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	struct regmap *regmap;
 	void __iomem *base;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base)) {
 		dev_err(&pdev->dev, "Failed to map the registers\n");
 		return PTR_ERR(base);
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 33/34] ASoC: sunxi: sun50i-codec-analog: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (31 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 32/34] ASoC: sun8i-codec-analog: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  2019-07-27 15:07 ` [PATCH -next 34/34] ASoC: sun8i-codec: " YueHaibing
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/sunxi/sun50i-codec-analog.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/sunxi/sun50i-codec-analog.c b/sound/soc/sunxi/sun50i-codec-analog.c
index 6d1de56..f5b7069 100644
--- a/sound/soc/sunxi/sun50i-codec-analog.c
+++ b/sound/soc/sunxi/sun50i-codec-analog.c
@@ -459,12 +459,10 @@ MODULE_DEVICE_TABLE(of, sun50i_codec_analog_of_match);
 
 static int sun50i_codec_analog_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	struct regmap *regmap;
 	void __iomem *base;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base)) {
 		dev_err(&pdev->dev, "Failed to map the registers\n");
 		return PTR_ERR(base);
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

* [PATCH -next 34/34] ASoC: sun8i-codec: use devm_platform_ioremap_resource() to simplify code
  2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
                   ` (32 preceding siblings ...)
  2019-07-27 15:07 ` [PATCH -next 33/34] ASoC: sunxi: sun50i-codec-analog: " YueHaibing
@ 2019-07-27 15:07 ` YueHaibing
  33 siblings, 0 replies; 35+ messages in thread
From: YueHaibing @ 2019-07-27 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, eric, wahrenst, f.fainelli,
	rjui, sbranden, bcm-kernel-feedback-list, paul, timur,
	nicoleotsuka, Xiubo.Lee, festevam, shawnguo, s.hauer, kernel,
	linux-imx, matthias.bgg, jbrunet, khilman, daniel,
	haojian.zhuang, robert.jarzmik, baohua, olivier.moysan,
	arnaud.pouliquen, mcoquelin.stm32, alexandre.torgue, mripard,
	wens, thierry.reding, jonathanh, yamada.masahiro, michal.simek,
	jcmvbkbc
  Cc: linux-xtensa, alsa-devel, gregkh, YueHaibing, linux-kernel,
	linux-mediatek, linux-rpi-kernel, linux-tegra, linux-amlogic,
	linuxppc-dev, linux-stm32, linux-arm-kernel

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/sunxi/sun8i-codec.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/sunxi/sun8i-codec.c b/sound/soc/sunxi/sun8i-codec.c
index 0e0e8eb..55798bc 100644
--- a/sound/soc/sunxi/sun8i-codec.c
+++ b/sound/soc/sunxi/sun8i-codec.c
@@ -533,7 +533,6 @@ static const struct regmap_config sun8i_codec_regmap_config = {
 
 static int sun8i_codec_probe(struct platform_device *pdev)
 {
-	struct resource *res_base;
 	struct sun8i_codec *scodec;
 	void __iomem *base;
 	int ret;
@@ -556,8 +555,7 @@ static int sun8i_codec_probe(struct platform_device *pdev)
 		return PTR_ERR(scodec->clk_bus);
 	}
 
-	res_base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res_base);
+	base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(base)) {
 		dev_err(&pdev->dev, "Failed to map the registers\n");
 		return PTR_ERR(base);
-- 
2.7.4



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2019-07-27 15:23 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-27 15:07 [PATCH -next 00/34] ASoC: use devm_platform_ioremap_resource() to simplify code YueHaibing
2019-07-27 15:07 ` [PATCH -next 01/34] ASoC: tegra20_das: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 02/34] ASoC: tegra: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 03/34] ASoC: rockchip: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 04/34] ASoC: ep93xx-i2s: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 05/34] ASoC: mt8173: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 06/34] ASoC: mt6797: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 07/34] ASoC: imx-audmux: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 08/34] ASoC: fsl_audmix: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 09/34] ASoC: bcm2835-i2s: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 10/34] ASoC: sirf: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 11/34] ASoC: mxs-saif: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 12/34] ASoC: spear: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 13/34] ASoC: kirkwood-i2s: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 14/34] ASoC: xtfpga-i2s: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 15/34] ASoC: stm32: sai: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 16/34] ASoC: codecs: msm8916-wcd: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 17/34] ASoC: codecs: jz4725b: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 18/34] ASoC: mmp-sspa: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 19/34] ASoC: jz4740: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 20/34] ASoC: inno_rk3036: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 21/34] ASoC: uniphier: evea: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 22/34] ASoC: uniphier: aio-dma: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 23/34] ASoC: psc-ac97: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 24/34] ASoC: au1x: psc-i2s: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 25/34] ASoC: meson: g12a-tohdmitx: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 26/34] ASoC: meson: axg-tdm-formatter: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 27/34] ASoC: meson: axg-pdm: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 28/34] ASoC: meson: axg-spdifin: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 29/34] ASoC: meson: axg-spdifout: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 30/34] ASoC: meson: axg-fifo: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 31/34] ASoC: xlnx: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 32/34] ASoC: sun8i-codec-analog: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 33/34] ASoC: sunxi: sun50i-codec-analog: " YueHaibing
2019-07-27 15:07 ` [PATCH -next 34/34] ASoC: sun8i-codec: " YueHaibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).