aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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