From 84688dfdb4aecc8296b4fef9bc657335d7b9ade5 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 16 Sep 2009 16:21:48 +0200 Subject: [PATCH] console: make locally used function static Signed-off-by: Sascha Hauer --- common/console.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/console.c b/common/console.c index 3c3c4176c..5b70efe93 100644 --- a/common/console.c +++ b/common/console.c @@ -125,7 +125,7 @@ int console_register(struct console_device *newcdev) char ch; strcpy(dev->name, "cs"); - dev->type_data = newcdev->dev->type_data; + dev->type_data = newcdev; register_device(dev); if (newcdev->setbrg) { @@ -173,7 +173,7 @@ int console_register(struct console_device *newcdev) } EXPORT_SYMBOL(console_register); -int getc_raw(void) +static int getc_raw(void) { struct console_device *cdev; int active = 0; @@ -204,6 +204,7 @@ int getc(void) */ start = get_time_ns(); while (1) { + fsl_udc_irq(); if (tstc()) { kfifo_putc(console_input_buffer, getc_raw());