diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-23 18:53:27 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 04:54:24 -0400 |
commit | 6a23acf3905287eb952a6f1dbbc8fb3e4eeae2f6 (patch) | |
tree | 71c1874e6ae1e00df81b5df5b78e3935f93f298b /arch/sparc64/solaris | |
parent | 8271f04242af8ddf8390f289cd6ef78fb3e3c6d9 (diff) |
[SPARC64]: constify of_get_property return: arch/sparc64
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/solaris')
-rw-r--r-- | arch/sparc64/solaris/misc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc64/solaris/misc.c b/arch/sparc64/solaris/misc.c index 9fcaad6dd11f..542c808ec2c8 100644 --- a/arch/sparc64/solaris/misc.c +++ b/arch/sparc64/solaris/misc.c | |||
@@ -224,7 +224,8 @@ static char *serial(char *buffer, int sz) | |||
224 | 224 | ||
225 | *buffer = 0; | 225 | *buffer = 0; |
226 | if (dp) { | 226 | if (dp) { |
227 | char *val = of_get_property(dp, "system-board-serial#", &len); | 227 | const char *val = |
228 | of_get_property(dp, "system-board-serial#", &len); | ||
228 | 229 | ||
229 | if (val && len > 0) { | 230 | if (val && len > 0) { |
230 | if (len > sz) | 231 | if (len > sz) |