projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b57e3c2
)
gpio/vr41xx: Convert use of struct resource to resource_size(ptr)
author
Joe Perches
<joe@perches.com>
Sat, 11 Jun 2011 01:16:15 +0000
(18:16 -0700)
committer
Grant Likely
<grant.likely@secretlab.ca>
Sat, 11 Jun 2011 05:37:10 +0000
(23:37 -0600)
Remove miscellaneous use of direct calculation by using resource_size().
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-vr41xx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-vr41xx.c
b/drivers/gpio/gpio-vr41xx.c
index a365be040b3663be0f8eaf1baf4fac6b935bfcb6..98723cb9ac68abdb5c641cd9aae9c08579c6b37d 100644
(file)
--- a/
drivers/gpio/gpio-vr41xx.c
+++ b/
drivers/gpio/gpio-vr41xx.c
@@
-518,7
+518,7
@@
static int __devinit giu_probe(struct platform_device *pdev)
if (!res)
return -EBUSY;
- giu_base = ioremap(res->start, res
->end - res->start + 1
);
+ giu_base = ioremap(res->start, res
ource_size(res)
);
if (!giu_base)
return -ENOMEM;