[POWERPC] Fix constantness of bootwrapper arg
authorGeoff Levand <geoffrey.levand@am.sony.com>
Fri, 15 Jun 2007 22:06:40 +0000 (08:06 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 28 Jun 2007 09:16:49 +0000 (19:16 +1000)
Fixes the constantness of the powerpc bootwrapper's console_ops.write
routine.  Allows printing of constant strings.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/ofconsole.c
arch/powerpc/boot/ops.h
arch/powerpc/boot/serial.c

index 00c9dc92dd2f37bb1ee2d8e720f33796b3b0b491..43c0f36c3326b83dfddac2babcd22ad6b84c7cd6 100644 (file)
@@ -33,7 +33,7 @@ static int of_console_open(void)
        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);
 }
index 959124f3f9afb1d8eb64127ae3e3912a6f677cbf..a1581b7f1779083d9ebc7d1bb1d1a6247d4cb7fd 100644 (file)
@@ -51,7 +51,7 @@ extern struct dt_ops dt_ops;
 /* Console operations */
 struct console_ops {
        int     (*open)(void);
-       void    (*write)(char *buf, int len);
+       void    (*write)(const char *buf, int len);
        void    (*edit_cmdline)(char *buf, int len);
        void    (*close)(void);
        void    *data;
index 7fd32330a9a5ae065da03b94db95b4c8efa8fdf8..eaa0d3ae351861957ec2fbe7cad0debce1a2a779 100644 (file)
@@ -27,7 +27,7 @@ static int serial_open(void)
        return scdp->open();
 }
 
-static void serial_write(char *buf, int len)
+static void serial_write(const char *buf, int len)
 {
        struct serial_console_data *scdp = console_ops.data;