diff options
author | Andres Salomon <dilinger@queued.net> | 2010-06-28 22:00:29 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-07-30 21:02:21 -0400 |
commit | 54e5bc020ce1c959eaa7be18cedb734b6b13745e (patch) | |
tree | 795e2f33eba14db1ed4f72de97d97695b30f1071 /arch/x86/include | |
parent | 25971865d48a8d0ece5307a59dbd3f06d05a7567 (diff) |
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/include')
-rw-r--r-- | arch/x86/include/asm/olpc_ofw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/olpc_ofw.h b/arch/x86/include/asm/olpc_ofw.h index 3e63d857c48f..08fde475cb3b 100644 --- a/arch/x86/include/asm/olpc_ofw.h +++ b/arch/x86/include/asm/olpc_ofw.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #define olpc_ofw(name, args, res) \ | 12 | #define olpc_ofw(name, args, res) \ |
13 | __olpc_ofw((name), ARRAY_SIZE(args), args, ARRAY_SIZE(res), res) | 13 | __olpc_ofw((name), ARRAY_SIZE(args), args, ARRAY_SIZE(res), res) |
14 | 14 | ||
15 | extern int __olpc_ofw(const char *name, int nr_args, void **args, int nr_res, | 15 | extern int __olpc_ofw(const char *name, int nr_args, const void **args, int nr_res, |
16 | void **res); | 16 | void **res); |
17 | 17 | ||
18 | /* determine whether OFW is available and lives in the proper memory */ | 18 | /* determine whether OFW is available and lives in the proper memory */ |