diff mbox series

[-next,1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource()

Message ID 20210615135200.1661695-1-yangyingliang@huawei.com (mailing list archive)
State Accepted
Commit e43805c28df6394254d1f49a388a1c70cae208a1
Headers show
Series [-next,1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource() | expand

Commit Message

Yang Yingliang June 15, 2021, 1:51 p.m. UTC
Use devm_platform_get_and_ioremap_resource() to simplify

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


Mark Brown June 15, 2021, 5:29 p.m. UTC | #1
On Tue, 15 Jun 2021 21:51:56 +0800, Yang Yingliang wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.

Applied to

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


[1/5] ASoC: img-i2s-in: Use devm_platform_get_and_ioremap_resource()
      commit: e43805c28df6394254d1f49a388a1c70cae208a1
[2/5] ASoC: img-i2s-out: Use devm_platform_get_and_ioremap_resource()
      commit: ef43f463ddb3dc0acaf1447db22db85df5100380
[3/5] ASoC: img-parallel-out: Use devm_platform_get_and_ioremap_resource()
      commit: a444a902b06a361d646e608136efb35119922445
[4/5] ASoC: img-spdif-in: Use devm_platform_get_and_ioremap_resource()
      commit: c481f3838acc3e1b28fc228f9fbb2f569e3d8d0c
[5/5] ASoC: img-spdif-out: Use devm_platform_get_and_ioremap_resource()
      commit: 942f2671c573904066ddbc699ff8812b3df70a9c

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.

diff mbox series


diff --git a/sound/soc/img/img-i2s-in.c b/sound/soc/img/img-i2s-in.c
index fd3432a1d6ab..1bf5d6edbd32 100644
--- a/sound/soc/img/img-i2s-in.c
+++ b/sound/soc/img/img-i2s-in.c
@@ -434,8 +434,7 @@  static int img_i2s_in_probe(struct platform_device *pdev)
 	i2s->dev = dev;
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(dev, res);
+	base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(base))
 		return PTR_ERR(base);