projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfbeb59
)
mmc: android-goldfish: use resource_size()
author
Silviu-Mihai Popescu
<silviupopescu1990@gmail.com>
Tue, 12 Mar 2013 18:21:26 +0000
(20:21 +0200)
committer
Chris Ball
<cjb@laptop.org>
Fri, 22 Mar 2013 16:53:52 +0000
(12:53 -0400)
Use resource_size() instead of explicit calculation. This was found via
make coccicheck.
Signed-off-by: Silviu-Mihai Popescu <silviupopescu1990@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/android-goldfish.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/android-goldfish.c
b/drivers/mmc/host/android-goldfish.c
index
ef3aef0
..
7780c14
100644
(file)
--- a/
drivers/mmc/host/android-goldfish.c
+++ b/
drivers/mmc/host/android-goldfish.c
@@
-476,7
+476,7
@@
static int goldfish_mmc_probe(struct platform_device *pdev)
host->mmc = mmc;
pr_err("mmc: Mapping %lX to %lX\n", (long)res->start, (long)res->end);
- host->reg_base = ioremap(res->start, res
->end - res->start + 1
);
+ host->reg_base = ioremap(res->start, res
ource_size(res)
);
if (host->reg_base == NULL) {
ret = -ENOMEM;
goto ioremap_failed;