summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/olpc.c
diff options
context:
space:
mode:
authorAndres Salomon2010-06-29 04:00:29 +0200
committerH. Peter Anvin2010-07-31 03:02:21 +0200
commit54e5bc020ce1c959eaa7be18cedb734b6b13745e (patch)
tree795e2f33eba14db1ed4f72de97d97695b30f1071 /arch/x86/kernel/olpc.c
parentx86, olpc: Use pr_debug() for EC commands (diff)
downloadkernel-qcow2-linux-54e5bc020ce1c959eaa7be18cedb734b6b13745e.tar.gz
kernel-qcow2-linux-54e5bc020ce1c959eaa7be18cedb734b6b13745e.tar.xz
kernel-qcow2-linux-54e5bc020ce1c959eaa7be18cedb734b6b13745e.zip
x86, olpc: Constify an olpc_ofw() arg
The arguments passed to OFW shouldn't be modified; update the 'args' argument of olpc_ofw to reflect this. This saves us some later casting away of consts. Signed-off-by: Andres Salomon <dilinger@queued.net> LKML-Reference: <20100628220029.1555ac24@debian> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/olpc.c')
-rw-r--r--arch/x86/kernel/olpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/olpc.c b/arch/x86/kernel/olpc.c
index f5ff3903b38b..0e0cdde519be 100644
--- a/arch/x86/kernel/olpc.c
+++ b/arch/x86/kernel/olpc.c
@@ -188,7 +188,7 @@ static void __init platform_detect(void)
{
size_t propsize;
__be32 rev;
- void *args[] = { NULL, "board-revision-int", &rev, (void *)4 };
+ const void *args[] = { NULL, "board-revision-int", &rev, (void *)4 };
void *res[] = { &propsize };
if (olpc_ofw("getprop", args, res) || propsize != 4) {