aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2007-06-15 18:06:40 -0400
committerPaul Mackerras <paulus@samba.org>2007-06-28 05:16:49 -0400
commitb96fbb6e1eb81bb21a8c3462773a0056e12de427 (patch)
tree5a4094f10d63bafaa5d203497857bb36e9e34bd1
parent0aa97d6e420039fc4a6040acdf53e56e0f90c0f5 (diff)
[POWERPC] Fix constantness of bootwrapper arg
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>
-rw-r--r--arch/powerpc/boot/ofconsole.c2
-rw-r--r--arch/powerpc/boot/ops.h2
-rw-r--r--arch/powerpc/boot/serial.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/boot/ofconsole.c b/arch/powerpc/boot/ofconsole.c
index 00c9dc92dd2f..43c0f36c3326 100644
--- a/arch/powerpc/boot/ofconsole.c
+++ b/arch/powerpc/boot/ofconsole.c
@@ -33,7 +33,7 @@ static int of_console_open(void)
33 return -1; 33 return -1;
34} 34}
35 35
36static void of_console_write(char *buf, int len) 36static void of_console_write(const char *buf, int len)
37{ 37{
38 of_call_prom("write", 3, 1, of_stdout_handle, buf, len); 38 of_call_prom("write", 3, 1, of_stdout_handle, buf, len);
39} 39}
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h
index 959124f3f9af..a1581b7f1779 100644
--- a/arch/powerpc/boot/ops.h
+++ b/arch/powerpc/boot/ops.h
@@ -51,7 +51,7 @@ extern struct dt_ops dt_ops;
51/* Console operations */ 51/* Console operations */
52struct console_ops { 52struct console_ops {
53 int (*open)(void); 53 int (*open)(void);
54 void (*write)(char *buf, int len); 54 void (*write)(const char *buf, int len);
55 void (*edit_cmdline)(char *buf, int len); 55 void (*edit_cmdline)(char *buf, int len);
56 void (*close)(void); 56 void (*close)(void);
57 void *data; 57 void *data;
diff --git a/arch/powerpc/boot/serial.c b/arch/powerpc/boot/serial.c
index 7fd32330a9a5..eaa0d3ae3518 100644
--- a/arch/powerpc/boot/serial.c
+++ b/arch/powerpc/boot/serial.c
@@ -27,7 +27,7 @@ static int serial_open(void)
27 return scdp->open(); 27 return scdp->open();
28} 28}
29 29
30static void serial_write(char *buf, int len) 30static void serial_write(const char *buf, int len)
31{ 31{
32 struct serial_console_data *scdp = console_ops.data; 32 struct serial_console_data *scdp = console_ops.data;
33 33