Skip to content

Commit

Permalink
[POWERPC] Fix constantness of bootwrapper arg
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Jun 28, 2007
1 parent 0aa97d6 commit b96fbb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/boot/ofconsole.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b96fbb6

Please sign in to comment.