diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-12 11:50:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-12 11:50:48 +0200 |
commit | 646856e39453391174c8cfedc492a150296de2ec (patch) | |
tree | 9bbbdc94fd678e7825b471b2dd5973a682e0c75c /common/console.c | |
parent | 8b3202dcb1f3db4da4d1bd69385a75f0675cfdea (diff) | |
download | barebox-646856e39453391174c8cfedc492a150296de2ec.tar.gz barebox-646856e39453391174c8cfedc492a150296de2ec.tar.xz |
fix for !CONFIG_HAS_EARLY_INIT
Diffstat (limited to 'common/console.c')
-rw-r--r-- | common/console.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/console.c b/common/console.c index c0ce7b92bb..f65e15b1a6 100644 --- a/common/console.c +++ b/common/console.c @@ -174,16 +174,15 @@ void console_putc(unsigned int ch, char c) struct console_device *cdev = first_console; int init = INITDATA(initialized); - early_console_putc(INITDATA(early_console_base), c); - return; - switch (init) { case CONSOLE_UNINITIALIZED: return; +#ifdef CONFIG_HAS_EARLY_INIT case CONSOLE_INIT_EARLY: early_console_putc(INITDATA(early_console_base), c); return; +#endif case CONSOLE_INIT_FULL: while (cdev) { @@ -301,6 +300,8 @@ int ctrlc (void) return 0; } +#ifdef CONFIG_HAS_EARLY_INIT + void early_console_start(const char *name, int baudrate) { void *base = get_early_console_base(name); @@ -312,3 +313,4 @@ void early_console_start(const char *name, int baudrate) } } +#endif |