linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/13] mmc: sunxi-mmc: convert to devm_platform_ioremap_resource
@ 2019-12-15 17:51 Yangtao Li
  2019-12-15 17:51 ` [PATCH 02/13] mmc: tmio: " Yangtao Li
                   ` (12 more replies)
  0 siblings, 13 replies; 19+ messages in thread
From: Yangtao Li @ 2019-12-15 17:51 UTC (permalink / raw)
  To: manuel.lauss, ulf.hansson, khilman, chaotian.jing, matthias.bgg,
	nico, adrian.hunter, agross, bjorn.andersson, ben-linux,
	jh80.chung, vireshk, mripard, wens, wsa+renesas, gregkh,
	kstewart, yamada.masahiro, tglx, allison, yoshihiro.shimoda.uh,
	geert+renesas, linus.walleij
  Cc: linux-mmc, linux-kernel, linux-arm-kernel, linux-amlogic,
	linux-mediatek, linux-arm-msm, Yangtao Li

Use devm_platform_ioremap_resource() to simplify code.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
 drivers/mmc/host/sunxi-mmc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index d577a6b0ceae..f87d7967457f 100644
--- a/drivers/mmc/host/sunxi-mmc.c
+++ b/drivers/mmc/host/sunxi-mmc.c
@@ -1273,8 +1273,7 @@ static int sunxi_mmc_resource_request(struct sunxi_mmc_host *host,
 	if (ret)
 		return ret;
 
-	host->reg_base = devm_ioremap_resource(&pdev->dev,
-			      platform_get_resource(pdev, IORESOURCE_MEM, 0));
+	host->reg_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(host->reg_base))
 		return PTR_ERR(host->reg_base);
 
-- 
2.17.1


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

end of thread, other threads:[~2019-12-18 14:02 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-15 17:51 [PATCH 01/13] mmc: sunxi-mmc: convert to devm_platform_ioremap_resource Yangtao Li
2019-12-15 17:51 ` [PATCH 02/13] mmc: tmio: " Yangtao Li
2019-12-18  9:47   ` Wolfram Sang
2019-12-15 17:51 ` [PATCH 03/13] mmc: meson-mx-sdio: " Yangtao Li
2019-12-15 17:51 ` [PATCH 04/13] mmc: sdhci-s3c: " Yangtao Li
2019-12-15 17:51 ` [PATCH 05/13] mmc: sdhci-spear: " Yangtao Li
2019-12-15 17:51 ` [PATCH 06/13] mmc: sh_mmcif: " Yangtao Li
2019-12-18  9:49   ` Wolfram Sang
2019-12-15 17:51 ` [PATCH 07/13] mmc: sdhci_f_sdh30: " Yangtao Li
2019-12-15 17:51 ` [PATCH 08/13] mmc: sdhci_am654: " Yangtao Li
2019-12-15 17:51 ` [PATCH 09/13] mmc: sdhci-milbeaut: " Yangtao Li
2019-12-15 17:51 ` [PATCH 10/13] mmc: sdhci-msm: " Yangtao Li
2019-12-18  6:30   ` Bjorn Andersson
2019-12-18 14:01     ` Ulf Hansson
2019-12-15 17:51 ` [PATCH 11/13] mmc: mvsdio: " Yangtao Li
2019-12-15 17:51 ` [PATCH 12/13] mmc: mtk-sd: " Yangtao Li
2019-12-15 17:51 ` [PATCH 13/13] mmc: au1xmmc: switch to platform_get_irq Yangtao Li
2019-12-18 14:01   ` Ulf Hansson
2019-12-18  2:27 ` [PATCH 01/13] mmc: sunxi-mmc: convert to devm_platform_ioremap_resource Chen-Yu Tsai

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