* [PATCH] mmc: vt8500: use resource_size() macro
@ 2013-03-13 5:36 Wei Yongjun
0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2013-03-13 5:36 UTC (permalink / raw)
To: linux, cjb, grant.likely, rob.herring
Cc: yongjun_wei, linux-arm-kernel, linux-mmc, devicetree-discuss
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Use resource_size function on resource object
instead of explicit computation.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-03-13 5:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-13 5:36 [PATCH] mmc: vt8500: use resource_size() macro Wei Yongjun
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).