diff options
author | Alexandru Gheorghiu <gheorghiuandru@gmail.com> | 2013-03-12 03:04:54 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-22 20:38:46 +0400 |
commit | 22119901621f0aca1fefbb5e7100d76d1879ac16 (patch) | |
tree | 9fb595d96a9a3c6128d953a42e774fffba2b4e2c /drivers/mmc/host/wmt-sdmmc.c | |
parent | 8a8396ae218a9e8dd4af285cc9c22951bed9850e (diff) | |
download | linux-22119901621f0aca1fefbb5e7100d76d1879ac16.tar.xz |
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>
Diffstat (limited to 'drivers/mmc/host/wmt-sdmmc.c')
-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) 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); |