diff options
author | David S. Miller <davem@davemloft.net> | 2008-12-06 02:06:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-06 02:06:47 +0100 |
commit | 59966e3b4e9e6573b352301ad0ceed15196d4e2d (patch) | |
tree | 39f8da655c71208c1c03bc292b2980d7e1c70fd9 /arch/sparc/kernel/prom_64.c | |
parent | sparc: Move property building code into prom_common.c (diff) | |
download | linux-59966e3b4e9e6573b352301ad0ceed15196d4e2d.tar.xz linux-59966e3b4e9e6573b352301ad0ceed15196d4e2d.zip |
sparc: Commonize get_one_property() implementations.
Add final len assignment in sparc64's get_one_property() (it's necessary
to avoid unchecked return value warnings on the sparc32 side),
and mark name argument const on sparc32's copy.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/prom_64.c')
-rw-r--r-- | arch/sparc/kernel/prom_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/prom_64.c b/arch/sparc/kernel/prom_64.c index e3969db4d58b..ce96c1cf6c3a 100644 --- a/arch/sparc/kernel/prom_64.c +++ b/arch/sparc/kernel/prom_64.c @@ -407,7 +407,7 @@ static char * __init get_one_property(phandle node, const char *name) len = prom_getproplen(node, name); if (len > 0) { buf = prom_early_alloc(len); - prom_getproperty(node, name, buf, len); + len = prom_getproperty(node, name, buf, len); } return buf; |