linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: sunxi: use devm_platform_get_and_ioremap_resource()
@ 2022-11-11  8:41 ye.xingchen
  2022-11-13 21:28 ` Samuel Holland
  2022-11-15  9:56 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: ye.xingchen @ 2022-11-11  8:41 UTC (permalink / raw)
  To: fengzheng923
  Cc: lgirdwood, broonie, alsa-devel, linux-arm-kernel, linux-sunxi,
	linux-kernel, chi.minghao

From: Minghao Chi <chi.minghao@zte.com.cn>

Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
---
 sound/soc/sunxi/sun50i-dmic.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/sunxi/sun50i-dmic.c b/sound/soc/sunxi/sun50i-dmic.c
index 62509cb02995..069c993acb31 100644
--- a/sound/soc/sunxi/sun50i-dmic.c
+++ b/sound/soc/sunxi/sun50i-dmic.c
@@ -317,8 +317,7 @@ static int sun50i_dmic_probe(struct platform_device *pdev)
 		return -ENOMEM;

 	/* Get the addresses */
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(base))
 		return dev_err_probe(&pdev->dev, PTR_ERR(base),
 				     "get resource failed.\n");
-- 
2.25.1

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

* Re: [PATCH] ASoC: sunxi: use devm_platform_get_and_ioremap_resource()
  2022-11-11  8:41 [PATCH] ASoC: sunxi: use devm_platform_get_and_ioremap_resource() ye.xingchen
@ 2022-11-13 21:28 ` Samuel Holland
  2022-11-15  9:56 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Holland @ 2022-11-13 21:28 UTC (permalink / raw)
  To: ye.xingchen, fengzheng923
  Cc: lgirdwood, broonie, alsa-devel, linux-arm-kernel, linux-sunxi,
	linux-kernel, chi.minghao

On 11/11/22 02:41, ye.xingchen@zte.com.cn wrote:
> From: Minghao Chi <chi.minghao@zte.com.cn>
> 
> Convert platform_get_resource(), devm_ioremap_resource() to a single
> call to devm_platform_get_and_ioremap_resource(), as this is exactly
> what this function does.
> 
> Reported-by: Zeal Robot <zealci@zte.com.cn>
> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
> ---
>  sound/soc/sunxi/sun50i-dmic.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Acked-by: Samuel Holland <samuel@sholland.org>


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

* Re: [PATCH] ASoC: sunxi: use devm_platform_get_and_ioremap_resource()
  2022-11-11  8:41 [PATCH] ASoC: sunxi: use devm_platform_get_and_ioremap_resource() ye.xingchen
  2022-11-13 21:28 ` Samuel Holland
@ 2022-11-15  9:56 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-11-15  9:56 UTC (permalink / raw)
  To: fengzheng923, ye.xingchen
  Cc: chi.minghao, linux-arm-kernel, linux-sunxi, alsa-devel,
	linux-kernel, lgirdwood

On Fri, 11 Nov 2022 16:41:51 +0800 (CST), ye.xingchen@zte.com.cn wrote:
> From: Minghao Chi <chi.minghao@zte.com.cn>
> 
> Convert platform_get_resource(), devm_ioremap_resource() to a single
> call to devm_platform_get_and_ioremap_resource(), as this is exactly
> what this function does.
> 
> 
> [...]

Applied to

   broonie/sound.git for-next

Thanks!

[1/1] ASoC: sunxi: use devm_platform_get_and_ioremap_resource()
      commit: f8fd5f4813b6d8bdd003ffe164e98bfa01b1c830

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] 3+ messages in thread

end of thread, other threads:[~2022-11-15  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11  8:41 [PATCH] ASoC: sunxi: use devm_platform_get_and_ioremap_resource() ye.xingchen
2022-11-13 21:28 ` Samuel Holland
2022-11-15  9:56 ` Mark Brown

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).