summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-03-29 00:53:28 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:54:35 -0700
commit64b94701c0714f814e640ff351d5f784fdc0381e (patch)
tree2bb66f86ccec74533e40042f60aafe8551cae991 /arch
parent3198514d2d10fb3ce5e49ba0c611764ad8a214d0 (diff)
downloadop-kernel-dev-64b94701c0714f814e640ff351d5f784fdc0381e.zip
op-kernel-dev-64b94701c0714f814e640ff351d5f784fdc0381e.tar.gz
[SPARC/64]: constify of_get_property return
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/kernel/prom.c2
-rw-r--r--arch/sparc64/kernel/prom.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/prom.c b/arch/sparc/kernel/prom.c
index 8359d00..d2a8297 100644
--- a/arch/sparc/kernel/prom.c
+++ b/arch/sparc/kernel/prom.c
@@ -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;
diff --git a/arch/sparc64/kernel/prom.c b/arch/sparc64/kernel/prom.c
index 25b7036..493db96 100644
--- a/arch/sparc64/kernel/prom.c
+++ b/arch/sparc64/kernel/prom.c
@@ -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;
OpenPOWER on IntegriCloud