Skip to content

Commit c66c55b

Browse files
Yang LiUlf Hansson
authored andcommitted
mmc: owl-mmc: Use devm_platform_get_and_ioremap_resource()
According to commit 890cc39 ("drivers: provide devm_platform_get_and_ioremap_resource()"), 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. Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://lore.kernel.org/r/20230315054113.48898-1-yang.lee@linux.alibaba.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 7322653 commit c66c55b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/mmc/host/owl-mmc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,7 @@ static int owl_mmc_probe(struct platform_device *pdev)
578578
owl_host->mmc = mmc;
579579
spin_lock_init(&owl_host->lock);
580580

581-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
582-
owl_host->base = devm_ioremap_resource(&pdev->dev, res);
581+
owl_host->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
583582
if (IS_ERR(owl_host->base)) {
584583
ret = PTR_ERR(owl_host->base);
585584
goto err_free_host;

0 commit comments

Comments
 (0)