DORMANTno replies

[PATCH] mmc: vt8500: use resource_size() macro

From: Wei Yongjun <hidden>
Date: 2013-03-13 05:36:01
Also in: linux-devicetree, linux-mmc
Subsystem: arm/vt8500 arm architecture, multimedia card (mmc), secure digital (sd) and sdio subsystem, the rest · Maintainers: Alexey Charkov, Krzysztof Kozlowski, Ulf Hansson, Linus Torvalds

From: Wei Yongjun <redacted>

Use resource_size function on resource object
instead of explicit computation.

Signed-off-by: Wei Yongjun <redacted>
---
 drivers/mmc/host/wmt-sdmmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/wmt-sdmmc.c b/drivers/mmc/host/wmt-sdmmc.c
index c6d0015..04102d2 100644
--- a/drivers/mmc/host/wmt-sdmmc.c
+++ b/drivers/mmc/host/wmt-sdmmc.c
@@ -925,7 +925,7 @@ static int wmt_mci_remove(struct platform_device *pdev)
 	clk_put(priv->clk_sdmmc);
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	release_mem_region(res->start, res->end - res->start + 1);
+	release_mem_region(res->start, resource_size(res));
 
 	mmc_free_host(mmc);
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help