diff options
Diffstat (limited to 'arch/powerpc/boot/ofconsole.c')
| -rw-r--r-- | arch/powerpc/boot/ofconsole.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/boot/ofconsole.c b/arch/powerpc/boot/ofconsole.c index ce0e0242445..8b754702460 100644 --- a/arch/powerpc/boot/ofconsole.c +++ b/arch/powerpc/boot/ofconsole.c @@ -18,7 +18,7 @@  #include "of.h" -static void *of_stdout_handle; +static unsigned int of_stdout_handle;  static int of_console_open(void)  { @@ -27,8 +27,10 @@ static int of_console_open(void)  	if (((devp = of_finddevice("/chosen")) != NULL)  	    && (of_getprop(devp, "stdout", &of_stdout_handle,  			   sizeof(of_stdout_handle)) -		== sizeof(of_stdout_handle))) +		== sizeof(of_stdout_handle))) { +		of_stdout_handle = be32_to_cpu(of_stdout_handle);  		return 0; +	}  	return -1;  }  | 
