diff options
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) |