[SPARC/64]: constify of_get_property return
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 29 Mar 2007 07:53:28 +0000 (00:53 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 08:54:35 +0000 (01:54 -0700)
Finally, we actually change the functions themselves.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/prom.c
arch/sparc64/kernel/prom.c
include/asm-sparc/prom.h
include/asm-sparc64/prom.h

index 8359d00..d2a8297 100644 (file)
@@ -170,7 +170,7 @@ EXPORT_SYMBOL(of_find_property);
  * Find a property with a given name for a given node
  * and return the value.
  */
-void *of_get_property(struct device_node *np, const char *name, int *lenp)
+const void *of_get_property(struct device_node *np, const char *name, int *lenp)
 {
        struct property *pp = of_find_property(np,name,lenp);
        return pp ? pp->value : NULL;
index 25b7036..493db96 100644 (file)
@@ -174,7 +174,7 @@ EXPORT_SYMBOL(of_find_property);
  * Find a property with a given name for a given node
  * and return the value.
  */
-void *of_get_property(struct device_node *np, const char *name, int *lenp)
+const void *of_get_property(struct device_node *np, const char *name, int *lenp)
 {
        struct property *pp = of_find_property(np,name,lenp);
        return pp ? pp->value : NULL;
index 274868d..30d53ed 100644 (file)
@@ -89,7 +89,7 @@ extern struct property *of_find_property(struct device_node *np,
                                         const char *name,
                                         int *lenp);
 extern int of_device_is_compatible(struct device_node *device, const char *);
-extern void *of_get_property(struct device_node *node, const char *name,
+extern const void *of_get_property(struct device_node *node, const char *name,
                             int *lenp);
 #define get_property(node,name,lenp) of_get_property(node,name,lenp)
 extern int of_set_property(struct device_node *node, const char *name, void *val, int len);
index 0eca2d9..50b0338 100644 (file)
@@ -97,8 +97,8 @@ extern struct property *of_find_property(struct device_node *np,
                                         const char *name,
                                         int *lenp);
 extern int of_device_is_compatible(struct device_node *device, const char *);
-extern void *of_get_property(struct device_node *node, const char *name,
-                            int *lenp);
+extern const void *of_get_property(struct device_node *node, const char *name,
+                                  int *lenp);
 #define get_property(node,name,lenp) of_get_property(node,name,lenp)
 extern int of_set_property(struct device_node *node, const char *name, void *val, int len);
 extern int of_getintprop_default(struct device_node *np,