diff options
author | Alexandru Gheorghiu <gheorghiuandru@gmail.com> | 2013-03-12 00:04:54 +0100 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-22 17:38:46 +0100 |
commit | 22119901621f0aca1fefbb5e7100d76d1879ac16 (patch) | |
tree | 9fb595d96a9a3c6128d953a42e774fffba2b4e2c | |
parent | mmc: wmt-sdmmc: remove unused variable in wmt_complete_data_request() (diff) | |
download | linux-22119901621f0aca1fefbb5e7100d76d1879ac16.tar.xz linux-22119901621f0aca1fefbb5e7100d76d1879ac16.zip |
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) 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); |