All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next 0/4] ASoC: tegra: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-18  2:47 ` Yang Yingliang
  0 siblings, 0 replies; 11+ messages in thread
From: Yang Yingliang @ 2021-06-18  2:47 UTC (permalink / raw)
  To: linux-kernel, alsa-devel, linux-tegra; +Cc: lgirdwood, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Yang Yingliang (4):
  ASoC: tegra20: i2s: Use devm_platform_get_and_ioremap_resource()
  ASoC: tegra20: spdif: Use devm_platform_get_and_ioremap_resource()
  ASoC: tegra: tegra210_admaif: Use
    devm_platform_get_and_ioremap_resource()
  ASoC: tegra30: ahub: Use devm_platform_get_and_ioremap_resource()

 sound/soc/tegra/tegra20_i2s.c     | 3 +--
 sound/soc/tegra/tegra20_spdif.c   | 3 +--
 sound/soc/tegra/tegra210_admaif.c | 4 +---
 sound/soc/tegra/tegra30_ahub.c    | 3 +--
 4 files changed, 4 insertions(+), 9 deletions(-)

-- 
2.25.1


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

* [PATCH -next 0/4] ASoC: tegra: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-18  2:47 ` Yang Yingliang
  0 siblings, 0 replies; 11+ messages in thread
From: Yang Yingliang @ 2021-06-18  2:47 UTC (permalink / raw)
  To: linux-kernel, alsa-devel, linux-tegra; +Cc: broonie, lgirdwood

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Yang Yingliang (4):
  ASoC: tegra20: i2s: Use devm_platform_get_and_ioremap_resource()
  ASoC: tegra20: spdif: Use devm_platform_get_and_ioremap_resource()
  ASoC: tegra: tegra210_admaif: Use
    devm_platform_get_and_ioremap_resource()
  ASoC: tegra30: ahub: Use devm_platform_get_and_ioremap_resource()

 sound/soc/tegra/tegra20_i2s.c     | 3 +--
 sound/soc/tegra/tegra20_spdif.c   | 3 +--
 sound/soc/tegra/tegra210_admaif.c | 4 +---
 sound/soc/tegra/tegra30_ahub.c    | 3 +--
 4 files changed, 4 insertions(+), 9 deletions(-)

-- 
2.25.1


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

* [PATCH -next 1/4] ASoC: tegra20: i2s: Use devm_platform_get_and_ioremap_resource()
  2021-06-18  2:47 ` Yang Yingliang
@ 2021-06-18  2:47   ` Yang Yingliang
  -1 siblings, 0 replies; 11+ messages in thread
From: Yang Yingliang @ 2021-06-18  2:47 UTC (permalink / raw)
  To: linux-kernel, alsa-devel, linux-tegra; +Cc: lgirdwood, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/tegra/tegra20_i2s.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/tegra/tegra20_i2s.c b/sound/soc/tegra/tegra20_i2s.c
index b280ebd72591..266d2cab9f49 100644
--- a/sound/soc/tegra/tegra20_i2s.c
+++ b/sound/soc/tegra/tegra20_i2s.c
@@ -377,8 +377,7 @@ static int tegra20_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_get_and_ioremap_resource(pdev, 0, &mem);
 	if (IS_ERR(regs)) {
 		ret = PTR_ERR(regs);
 		goto err;
-- 
2.25.1


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

* [PATCH -next 1/4] ASoC: tegra20: i2s: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-18  2:47   ` Yang Yingliang
  0 siblings, 0 replies; 11+ messages in thread
From: Yang Yingliang @ 2021-06-18  2:47 UTC (permalink / raw)
  To: linux-kernel, alsa-devel, linux-tegra; +Cc: broonie, lgirdwood

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/tegra/tegra20_i2s.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/tegra/tegra20_i2s.c b/sound/soc/tegra/tegra20_i2s.c
index b280ebd72591..266d2cab9f49 100644
--- a/sound/soc/tegra/tegra20_i2s.c
+++ b/sound/soc/tegra/tegra20_i2s.c
@@ -377,8 +377,7 @@ static int tegra20_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_get_and_ioremap_resource(pdev, 0, &mem);
 	if (IS_ERR(regs)) {
 		ret = PTR_ERR(regs);
 		goto err;
-- 
2.25.1


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

* [PATCH -next 2/4] ASoC: tegra20: spdif: Use devm_platform_get_and_ioremap_resource()
  2021-06-18  2:47 ` Yang Yingliang
@ 2021-06-18  2:47   ` Yang Yingliang
  -1 siblings, 0 replies; 11+ messages in thread
From: Yang Yingliang @ 2021-06-18  2:47 UTC (permalink / raw)
  To: linux-kernel, alsa-devel, linux-tegra; +Cc: lgirdwood, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/tegra/tegra20_spdif.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/tegra/tegra20_spdif.c b/sound/soc/tegra/tegra20_spdif.c
index de698ff2a69c..7751575cd6d6 100644
--- a/sound/soc/tegra/tegra20_spdif.c
+++ b/sound/soc/tegra/tegra20_spdif.c
@@ -269,8 +269,7 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(&pdev->dev, mem);
+	regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.25.1


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

* [PATCH -next 2/4] ASoC: tegra20: spdif: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-18  2:47   ` Yang Yingliang
  0 siblings, 0 replies; 11+ messages in thread
From: Yang Yingliang @ 2021-06-18  2:47 UTC (permalink / raw)
  To: linux-kernel, alsa-devel, linux-tegra; +Cc: broonie, lgirdwood

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/tegra/tegra20_spdif.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/tegra/tegra20_spdif.c b/sound/soc/tegra/tegra20_spdif.c
index de698ff2a69c..7751575cd6d6 100644
--- a/sound/soc/tegra/tegra20_spdif.c
+++ b/sound/soc/tegra/tegra20_spdif.c
@@ -269,8 +269,7 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs = devm_ioremap_resource(&pdev->dev, mem);
+	regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.25.1


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

* [PATCH -next 3/4] ASoC: tegra: tegra210_admaif: Use devm_platform_get_and_ioremap_resource()
  2021-06-18  2:47 ` Yang Yingliang
@ 2021-06-18  2:47   ` Yang Yingliang
  -1 siblings, 0 replies; 11+ messages in thread
From: Yang Yingliang @ 2021-06-18  2:47 UTC (permalink / raw)
  To: linux-kernel, alsa-devel, linux-tegra; +Cc: lgirdwood, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/tegra/tegra210_admaif.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/tegra/tegra210_admaif.c b/sound/soc/tegra/tegra210_admaif.c
index 1268046b345d..0f9beef429a2 100644
--- a/sound/soc/tegra/tegra210_admaif.c
+++ b/sound/soc/tegra/tegra210_admaif.c
@@ -706,9 +706,7 @@ static int tegra_admaif_probe(struct platform_device *pdev)
 			return -ENOMEM;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-
-	regs = devm_ioremap_resource(&pdev->dev, res);
+	regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.25.1


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

* [PATCH -next 3/4] ASoC: tegra: tegra210_admaif: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-18  2:47   ` Yang Yingliang
  0 siblings, 0 replies; 11+ messages in thread
From: Yang Yingliang @ 2021-06-18  2:47 UTC (permalink / raw)
  To: linux-kernel, alsa-devel, linux-tegra; +Cc: broonie, lgirdwood

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/tegra/tegra210_admaif.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/tegra/tegra210_admaif.c b/sound/soc/tegra/tegra210_admaif.c
index 1268046b345d..0f9beef429a2 100644
--- a/sound/soc/tegra/tegra210_admaif.c
+++ b/sound/soc/tegra/tegra210_admaif.c
@@ -706,9 +706,7 @@ static int tegra_admaif_probe(struct platform_device *pdev)
 			return -ENOMEM;
 	}
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-
-	regs = devm_ioremap_resource(&pdev->dev, res);
+	regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 
-- 
2.25.1


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

* [PATCH -next 4/4] ASoC: tegra30: ahub: Use devm_platform_get_and_ioremap_resource()
  2021-06-18  2:47 ` Yang Yingliang
@ 2021-06-18  2:47   ` Yang Yingliang
  -1 siblings, 0 replies; 11+ messages in thread
From: Yang Yingliang @ 2021-06-18  2:47 UTC (permalink / raw)
  To: linux-kernel, alsa-devel, linux-tegra; +Cc: lgirdwood, broonie

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/tegra/tegra30_ahub.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c
index 4692c70ed933..b3e1df693381 100644
--- a/sound/soc/tegra/tegra30_ahub.c
+++ b/sound/soc/tegra/tegra30_ahub.c
@@ -550,8 +550,7 @@ static int tegra30_ahub_probe(struct platform_device *pdev)
 		goto err_unset_ahub;
 	}
 
-	res0 = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs_apbif = devm_ioremap_resource(&pdev->dev, res0);
+	regs_apbif = devm_platform_get_and_ioremap_resource(pdev, 0, &res0);
 	if (IS_ERR(regs_apbif)) {
 		ret = PTR_ERR(regs_apbif);
 		goto err_unset_ahub;
-- 
2.25.1


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

* [PATCH -next 4/4] ASoC: tegra30: ahub: Use devm_platform_get_and_ioremap_resource()
@ 2021-06-18  2:47   ` Yang Yingliang
  0 siblings, 0 replies; 11+ messages in thread
From: Yang Yingliang @ 2021-06-18  2:47 UTC (permalink / raw)
  To: linux-kernel, alsa-devel, linux-tegra; +Cc: broonie, lgirdwood

Use devm_platform_get_and_ioremap_resource() to simplify
code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 sound/soc/tegra/tegra30_ahub.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c
index 4692c70ed933..b3e1df693381 100644
--- a/sound/soc/tegra/tegra30_ahub.c
+++ b/sound/soc/tegra/tegra30_ahub.c
@@ -550,8 +550,7 @@ static int tegra30_ahub_probe(struct platform_device *pdev)
 		goto err_unset_ahub;
 	}
 
-	res0 = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	regs_apbif = devm_ioremap_resource(&pdev->dev, res0);
+	regs_apbif = devm_platform_get_and_ioremap_resource(pdev, 0, &res0);
 	if (IS_ERR(regs_apbif)) {
 		ret = PTR_ERR(regs_apbif);
 		goto err_unset_ahub;
-- 
2.25.1


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

* Re: [PATCH -next 0/4] ASoC: tegra: Use devm_platform_get_and_ioremap_resource()
  2021-06-18  2:47 ` Yang Yingliang
                   ` (4 preceding siblings ...)
  (?)
@ 2021-06-23 16:08 ` Mark Brown
  -1 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2021-06-23 16:08 UTC (permalink / raw)
  To: Yang Yingliang, linux-tegra, alsa-devel, linux-kernel
  Cc: Mark Brown, lgirdwood

On Fri, 18 Jun 2021 10:47:18 +0800, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
> 
> Yang Yingliang (4):
>   ASoC: tegra20: i2s: Use devm_platform_get_and_ioremap_resource()
>   ASoC: tegra20: spdif: Use devm_platform_get_and_ioremap_resource()
>   ASoC: tegra: tegra210_admaif: Use
>     devm_platform_get_and_ioremap_resource()
>   ASoC: tegra30: ahub: Use devm_platform_get_and_ioremap_resource()
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/4] ASoC: tegra20: i2s: Use devm_platform_get_and_ioremap_resource()
      commit: 8ad9e5baa90f76c5125b23419fc458e206371bce
[2/4] ASoC: tegra20: spdif: Use devm_platform_get_and_ioremap_resource()
      commit: 8d81f0da47bbea7f4eb6cdae5210c8c3bd8ce50f
[3/4] ASoC: tegra: tegra210_admaif: Use devm_platform_get_and_ioremap_resource()
      commit: c29b6382d23c8bea604033f98604b7b1e543b1e7
[4/4] ASoC: tegra30: ahub: Use devm_platform_get_and_ioremap_resource()
      commit: fc8344e63e595fa1f2e783aaae0253570cd8eea8

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

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

end of thread, other threads:[~2021-06-23 16:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18  2:47 [PATCH -next 0/4] ASoC: tegra: Use devm_platform_get_and_ioremap_resource() Yang Yingliang
2021-06-18  2:47 ` Yang Yingliang
2021-06-18  2:47 ` [PATCH -next 1/4] ASoC: tegra20: i2s: " Yang Yingliang
2021-06-18  2:47   ` Yang Yingliang
2021-06-18  2:47 ` [PATCH -next 2/4] ASoC: tegra20: spdif: " Yang Yingliang
2021-06-18  2:47   ` Yang Yingliang
2021-06-18  2:47 ` [PATCH -next 3/4] ASoC: tegra: tegra210_admaif: " Yang Yingliang
2021-06-18  2:47   ` Yang Yingliang
2021-06-18  2:47 ` [PATCH -next 4/4] ASoC: tegra30: ahub: " Yang Yingliang
2021-06-18  2:47   ` Yang Yingliang
2021-06-23 16:08 ` [PATCH -next 0/4] ASoC: tegra: " Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.