Skip to contentSkip to conversation

ASoC: ti: omap-mcpdm: use devm_platform_ioremap_resource_byname()

PATCH In review [email protected] 2 participants 2 messages Mar 22, 2023 – Apr 4, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: ti: omap-mcpdm: use devm_platform_ioremap_resource_byname()

From: Ye Xingchen <[email protected]>

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

---
 sound/soc/ti/omap-mcpdm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/ti/omap-mcpdm.c +1 -2
index 0b18a7bfd3fd..35deceb73427 100644
@@ -563,8 +563,7 @@ static int asoc_mcpdm_probe(struct platform_device *pdev)
 	mcpdm->dma_data[0].filter_data = "dn_link";
 	mcpdm->dma_data[1].filter_data = "up_link";
 
-	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpu");
-	mcpdm->io_base = devm_ioremap_resource(&pdev->dev, res);
+	mcpdm->io_base = devm_platform_ioremap_resource_byname(pdev, "mpu");
 	if (IS_ERR(mcpdm->io_base))
 		return PTR_ERR(mcpdm->io_base);
 
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 5 lines · On Wed, Mar 22, 2023 at 02:11:11PM +0800, [email protected] wrote:

From: Ye Xingchen <[email protected]>

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

This doesn't apply against current code, please check and resend.