diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-02 20:49:57 -1000 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-02 20:49:57 -1000 |
commit | a6b11f53388973d99c4a357c22b19753b424e73c (patch) | |
tree | f0c31698f4f3ba47e44d34f7f5077ddde6079850 /drivers/of/address.c | |
parent | 73a9fe86fa21ccd528807b8cc871dc18be67ee5a (diff) | |
parent | d945fa0da7db9ace61fbb2140cfdb1e2d2b24e7e (diff) | |
download | linux-a6b11f53388973d99c4a357c22b19753b424e73c.tar.gz |
Merge branch 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6
* 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6:
MAINTAINERS: Add keyword match for of_match_table to device tree section
of: constify property name parameters for helper functions
input: xilinx_ps2: Add missing of_address.h header
of: address: use resource_size helper
Diffstat (limited to 'drivers/of/address.c')
-rw-r--r-- | drivers/of/address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c index da1f4b9605df..72c33fbe451d 100644 --- 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); |