aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/ofconsole.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/boot/ofconsole.c')
-rw-r--r--arch/powerpc/boot/ofconsole.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/boot/ofconsole.c b/arch/powerpc/boot/ofconsole.c
index ce0e02424453..8b754702460a 100644
--- a/arch/powerpc/boot/ofconsole.c
+++ b/arch/powerpc/boot/ofconsole.c
@@ -18,7 +18,7 @@
18 18
19#include "of.h" 19#include "of.h"
20 20
21static void *of_stdout_handle; 21static unsigned int of_stdout_handle;
22 22
23static int of_console_open(void) 23static int of_console_open(void)
24{ 24{
@@ -27,8 +27,10 @@ static int of_console_open(void)
27 if (((devp = of_finddevice("/chosen")) != NULL) 27 if (((devp = of_finddevice("/chosen")) != NULL)
28 && (of_getprop(devp, "stdout", &of_stdout_handle, 28 && (of_getprop(devp, "stdout", &of_stdout_handle,
29 sizeof(of_stdout_handle)) 29 sizeof(of_stdout_handle))
30 == sizeof(of_stdout_handle))) 30 == sizeof(of_stdout_handle))) {
31 of_stdout_handle = be32_to_cpu(of_stdout_handle);
31 return 0; 32 return 0;
33 }
32 34
33 return -1; 35 return -1;
34} 36}