diff options
author | Michal Simek <monstr@monstr.eu> | 2010-09-28 02:33:53 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-10-21 01:51:49 -0400 |
commit | 2af9ebe951bb12434e9f10cd1f0f83943ef3f54b (patch) | |
tree | c11d4d4cac46fbfb5fde0abb7f1867a7dbd3533b /arch/microblaze | |
parent | 96a5ff42298d0ea44d5aa321a56aeba280b52645 (diff) |
microblaze: Rename all uartlite early printk functions
This is done because of uart16550 early printk support
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/kernel/early_printk.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/microblaze/kernel/early_printk.c b/arch/microblaze/kernel/early_printk.c index 7de84923ba07..fa07d211adec 100644 --- a/arch/microblaze/kernel/early_printk.c +++ b/arch/microblaze/kernel/early_printk.c | |||
@@ -24,7 +24,7 @@ | |||
24 | static u32 early_console_initialized; | 24 | static u32 early_console_initialized; |
25 | static u32 base_addr; | 25 | static u32 base_addr; |
26 | 26 | ||
27 | static void early_printk_putc(char c) | 27 | static void early_printk_uartlite_putc(char c) |
28 | { | 28 | { |
29 | /* | 29 | /* |
30 | * Limit how many times we'll spin waiting for TX FIFO status. | 30 | * Limit how many times we'll spin waiting for TX FIFO status. |
@@ -45,25 +45,25 @@ static void early_printk_putc(char c) | |||
45 | out_be32(base_addr + 4, c & 0xff); | 45 | out_be32(base_addr + 4, c & 0xff); |
46 | } | 46 | } |
47 | 47 | ||
48 | static void early_printk_write(struct console *unused, | 48 | static void early_printk_uartlite_write(struct console *unused, |
49 | const char *s, unsigned n) | 49 | const char *s, unsigned n) |
50 | { | 50 | { |
51 | while (*s && n-- > 0) { | 51 | while (*s && n-- > 0) { |
52 | early_printk_putc(*s); | 52 | early_printk_uartlite_putc(*s); |
53 | if (*s == '\n') | 53 | if (*s == '\n') |
54 | early_printk_putc('\r'); | 54 | early_printk_uartlite_putc('\r'); |
55 | s++; | 55 | s++; |
56 | } | 56 | } |
57 | } | 57 | } |
58 | 58 | ||
59 | static struct console early_serial_console = { | 59 | static struct console early_serial_uartlite_console = { |
60 | .name = "earlyser", | 60 | .name = "earlyser", |
61 | .write = early_printk_write, | 61 | .write = early_printk_uartlite_write, |
62 | .flags = CON_PRINTBUFFER, | 62 | .flags = CON_PRINTBUFFER, |
63 | .index = -1, | 63 | .index = -1, |
64 | }; | 64 | }; |
65 | 65 | ||
66 | static struct console *early_console = &early_serial_console; | 66 | static struct console *early_console = &early_serial_uartlite_console; |
67 | 67 | ||
68 | void early_printk(const char *fmt, ...) | 68 | void early_printk(const char *fmt, ...) |
69 | { | 69 | { |