projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a8396a
)
mmc: wmt-sdmmc: Use resource_size()
author
Alexandru Gheorghiu
<gheorghiuandru@gmail.com>
Mon, 11 Mar 2013 23:04:54 +0000
(
01:04
+0200)
committer
Chris Ball
<cjb@laptop.org>
Fri, 22 Mar 2013 16:38:46 +0000
(12:38 -0400)
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>
drivers/mmc/host/wmt-sdmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/wmt-sdmmc.c
b/drivers/mmc/host/wmt-sdmmc.c
index
74cbc9a
..
442f576
100644
(file)
--- 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, res
ource_size(res)
);
mmc_free_host(mmc);