projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3da3f87
)
of: address: use resource_size helper
author
Felipe Balbi
<balbi@ti.com>
Fri, 22 Jul 2011 19:47:21 +0000
(22:47 +0300)
committer
Grant Likely
<grant.likely@secretlab.ca>
Mon, 1 Aug 2011 11:55:02 +0000
(12:55 +0100)
that should be the approved way of calculating
the size of resources. No functional changes.
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/address.c
patch
|
blob
|
history
diff --git
a/drivers/of/address.c
b/drivers/of/address.c
index
da1f4b9
..
72c33fb
100644
(file)
--- a/
drivers/of/address.c
+++ b/
drivers/of/address.c
@@
-610,6
+610,6
@@
void __iomem *of_iomap(struct device_node *np, int index)
if (of_address_to_resource(np, index, &res))
return NULL;
- return ioremap(res.start,
1 + res.end - res.start
);
+ return ioremap(res.start,
resource_size(&res)
);
}
EXPORT_SYMBOL(of_iomap);