]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/boot/ofconsole.c
[POWERPC] Make more OF-related bootwrapper functions available to non-OF platforms
[linux-2.6-omap-h63xx.git] / arch / powerpc / boot / ofconsole.c
index 00c9dc92dd2f37bb1ee2d8e720f33796b3b0b491..ce0e0242445325feb7251ae9214705e90c42864a 100644 (file)
@@ -24,16 +24,16 @@ static int of_console_open(void)
 {
        void *devp;
 
-       if (((devp = finddevice("/chosen")) != NULL)
-                       && (getprop(devp, "stdout", &of_stdout_handle,
-                               sizeof(of_stdout_handle))
-                               == sizeof(of_stdout_handle)))
+       if (((devp = of_finddevice("/chosen")) != NULL)
+           && (of_getprop(devp, "stdout", &of_stdout_handle,
+                          sizeof(of_stdout_handle))
+               == sizeof(of_stdout_handle)))
                return 0;
 
        return -1;
 }
 
-static void of_console_write(char *buf, int len)
+static void of_console_write(const char *buf, int len)
 {
        of_call_prom("write", 3, 1, of_stdout_handle, buf, len);
 }