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>
This commit is contained in:
committed by
H. Peter Anvin
parent
25971865d4
commit
54e5bc020c
@ -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) {
|
||||
|
Reference in New Issue
Block a user