summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2006-07-12 15:42:06 +1000
committerPaul Mackerras <paulus@samba.org>2006-07-31 15:55:06 +1000
commit931b261f442e779b0656d9b04c7ffe4939ef8c0a (patch)
tree76d650707d78ed7c9e002481001ac175c8502d8e /arch
parent88c805940bb9a1478f06ed6dd5d6f660bdc38eaa (diff)
downloadlinux-stable-931b261f442e779b0656d9b04c7ffe4939ef8c0a.tar.gz
linux-stable-931b261f442e779b0656d9b04c7ffe4939ef8c0a.tar.bz2
linux-stable-931b261f442e779b0656d9b04c7ffe4939ef8c0a.zip
[POWERPC] Make get_property() return a const void *
Previous changes have treated the return values of get_property as const, so now we can make the actual change to get_property(). There shouldn't be a need to cast the return values anymore. We will now get compiler warnings when property values are assigned to a non-const variable. If properties need to be updated, there's still the of_find_property function. Built for cell_defconfig, chrp32_defconfig, g5_defconfig, iseries_defconfig, maple_defconfig, pmac32_defconfig, ppc64_defconfig and pseries_defconfig. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/prom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 2a3d84a39cb5..bf2005b2feb6 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1527,7 +1527,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.
*/
-void *get_property(struct device_node *np, const char *name, int *lenp)
+const 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;