diff options
author | Alexandru Gheorghiu <gheorghiuandru@gmail.com> | 2013-03-11 19:04:54 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-22 12:38:46 -0400 |
commit | 22119901621f0aca1fefbb5e7100d76d1879ac16 (patch) | |
tree | 9fb595d96a9a3c6128d953a42e774fffba2b4e2c | |
parent | 8a8396ae218a9e8dd4af285cc9c22951bed9850e (diff) |
mmc: wmt-sdmmc: Use resource_size()
Used resource_size function instead of explicit computation.
Patch found using coccinelle.
Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/wmt-sdmmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/wmt-sdmmc.c b/drivers/mmc/host/wmt-sdmmc.c index 74cbc9a98428..442f5766ffca 100644 --- a/drivers/mmc/host/wmt-sdmmc.c +++ b/drivers/mmc/host/wmt-sdmmc.c | |||
@@ -923,7 +923,7 @@ static int wmt_mci_remove(struct platform_device *pdev) | |||
923 | clk_put(priv->clk_sdmmc); | 923 | clk_put(priv->clk_sdmmc); |
924 | 924 | ||
925 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 925 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
926 | release_mem_region(res->start, res->end - res->start + 1); | 926 | release_mem_region(res->start, resource_size(res)); |
927 | 927 | ||
928 | mmc_free_host(mmc); | 928 | mmc_free_host(mmc); |
929 | 929 | ||