summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-09-16 16:21:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-09-25 13:34:15 +0200
commit84688dfdb4aecc8296b4fef9bc657335d7b9ade5 (patch)
tree47d11875121a8bba712122fb4f578f816c7654e0 /common
parent24c51dfb3a165e6a5623287eded54d02ae5c30c9 (diff)
downloadbarebox-84688dfdb4aecc8296b4fef9bc657335d7b9ade5.tar.gz
barebox-84688dfdb4aecc8296b4fef9bc657335d7b9ade5.tar.xz
console: make locally used function static
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/console.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/console.c b/common/console.c
index 3c3c4176ce..5b70efe93c 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());