aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-08-03 02:49:57 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-08-03 02:49:57 -0400
commita6b11f53388973d99c4a357c22b19753b424e73c (patch)
treef0c31698f4f3ba47e44d34f7f5077ddde6079850 /drivers/of
parent73a9fe86fa21ccd528807b8cc871dc18be67ee5a (diff)
parentd945fa0da7db9ace61fbb2140cfdb1e2d2b24e7e (diff)
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')
-rw-r--r--drivers/of/address.c2
-rw-r--r--drivers/of/base.c7
2 files changed, 5 insertions, 4 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)
610 if (of_address_to_resource(np, index, &res)) 610 if (of_address_to_resource(np, index, &res))
611 return NULL; 611 return NULL;
612 612
613 return ioremap(res.start, 1 + res.end - res.start); 613 return ioremap(res.start, resource_size(&res));
614} 614}
615EXPORT_SYMBOL(of_iomap); 615EXPORT_SYMBOL(of_iomap);
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 02ed36719def..3ff22e32b602 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -610,8 +610,9 @@ EXPORT_SYMBOL(of_find_node_by_phandle);
610 * 610 *
611 * The out_value is modified only if a valid u32 value can be decoded. 611 * The out_value is modified only if a valid u32 value can be decoded.
612 */ 612 */
613int of_property_read_u32_array(const struct device_node *np, char *propname, 613int of_property_read_u32_array(const struct device_node *np,
614 u32 *out_values, size_t sz) 614 const char *propname, u32 *out_values,
615 size_t sz)
615{ 616{
616 struct property *prop = of_find_property(np, propname, NULL); 617 struct property *prop = of_find_property(np, propname, NULL);
617 const __be32 *val; 618 const __be32 *val;
@@ -645,7 +646,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u32_array);
645 * 646 *
646 * The out_string pointer is modified only if a valid string can be decoded. 647 * The out_string pointer is modified only if a valid string can be decoded.
647 */ 648 */
648int of_property_read_string(struct device_node *np, char *propname, 649int of_property_read_string(struct device_node *np, const char *propname,
649 const char **out_string) 650 const char **out_string)
650{ 651{
651 struct property *prop = of_find_property(np, propname, NULL); 652 struct property *prop = of_find_property(np, propname, NULL);