diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-03-29 03:49:54 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 04:54:27 -0400 |
commit | ccf0dec6fcadb4e1c877b9bafb031a6bdb7112b9 (patch) | |
tree | 98617d025f167ad05bb126f0982841ce277ee3af /drivers/sbus/char/openprom.c | |
parent | 6a23acf3905287eb952a6f1dbbc8fb3e4eeae2f6 (diff) |
[SPARC/64] constify of_get_property return: drivers
The only unfortunate bit here is that the name field of struct map_info
is not const, so for now we put a cast on the assignment of it.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus/char/openprom.c')
-rw-r--r-- | drivers/sbus/char/openprom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/openprom.c b/drivers/sbus/char/openprom.c index 5041c9dfbe3b..aec3b9f991f6 100644 --- a/drivers/sbus/char/openprom.c +++ b/drivers/sbus/char/openprom.c | |||
@@ -141,7 +141,7 @@ static int copyout(void __user *info, struct openpromio *opp, int len) | |||
141 | 141 | ||
142 | static int opromgetprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize) | 142 | static int opromgetprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize) |
143 | { | 143 | { |
144 | void *pval; | 144 | const void *pval; |
145 | int len; | 145 | int len; |
146 | 146 | ||
147 | if (!dp || | 147 | if (!dp || |
@@ -410,7 +410,7 @@ static int opiocget(void __user *argp, DATA *data) | |||
410 | struct opiocdesc op; | 410 | struct opiocdesc op; |
411 | struct device_node *dp; | 411 | struct device_node *dp; |
412 | char *str; | 412 | char *str; |
413 | void *pval; | 413 | const void *pval; |
414 | int err, len; | 414 | int err, len; |
415 | 415 | ||
416 | if (copy_from_user(&op, argp, sizeof(op))) | 416 | if (copy_from_user(&op, argp, sizeof(op))) |