summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2006-06-29 12:28:18 +0200
committerPaul Mackerras <paulus@samba.org>2006-07-03 00:56:33 +0200
commita1af5b2fd49eb24ab8c024da5d853b09841d1f8f (patch)
treea475482232e15282a2d212bbe9ccc10ac5d06234 /arch
parent[PATCH] nfs: non-procfs build fix (diff)
downloadlinux-a1af5b2fd49eb24ab8c024da5d853b09841d1f8f.tar.xz
linux-a1af5b2fd49eb24ab8c024da5d853b09841d1f8f.zip
[POWERPC] change get_property to return void *
Change the get_property() function to return a void *. This allows us to later remove the cast done in the majority of callers. Built for pseries, iseries, pmac32, cell, cbesim, g5, systemsim, maple, and mpc* defconfigs Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/prom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 4c524cb52184..ef3619c28702 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1975,8 +1975,7 @@ struct property *of_find_property(struct device_node *np, const char *name,
* Find a property with a given name for a given node
* and return the value.
*/
-unsigned char *get_property(struct device_node *np, const char *name,
- int *lenp)
+void *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;