aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-03-16 13:28:49 -0400
committerPaul Mackerras <paulus@samba.org>2007-03-21 07:35:21 -0400
commitf61e7cd21b47b07002aa39d2f8f0db14b4a51719 (patch)
tree6e7544d7f93c5ffb2ab1bbdb3fedac7ac85c3fcd /arch/powerpc/boot
parente0a2f28b4dee2a1e4c62dc8389f25defb284e387 (diff)
[POWERPC] bootwrapper: Make setprop accept a const buffer.
Signed-off-by: Scott Wood <scottwood@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r--arch/powerpc/boot/ops.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h
index dae0e3b23cf5..4d0cfd733985 100644
--- a/arch/powerpc/boot/ops.h
+++ b/arch/powerpc/boot/ops.h
@@ -91,7 +91,8 @@ static inline int getprop(void *devp, const char *name, void *buf, int buflen)
91 return (dt_ops.getprop) ? dt_ops.getprop(devp, name, buf, buflen) : -1; 91 return (dt_ops.getprop) ? dt_ops.getprop(devp, name, buf, buflen) : -1;
92} 92}
93 93
94static inline int setprop(void *devp, const char *name, void *buf, int buflen) 94static inline int setprop(void *devp, const char *name,
95 const void *buf, int buflen)
95{ 96{
96 return (dt_ops.setprop) ? dt_ops.setprop(devp, name, buf, buflen) : -1; 97 return (dt_ops.setprop) ? dt_ops.setprop(devp, name, buf, buflen) : -1;
97} 98}