Commit 057ee909 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] missing `console_driver' with CONFIG_VT && !CONFIG_VT_CONSOLE

From: Jun Sun <jsun@mvista.com>

'console_driver' is defined only when CONFIG_VT_CONSOLE is set.  However it
is used by vty_init() which is outside the scope of CONFIG_VT_CONSOLE.
parent 59287e5e
......@@ -2117,6 +2117,8 @@ void set_console(int nr)
schedule_console_callback();
}
struct tty_driver *console_driver;
#ifdef CONFIG_VT_CONSOLE
/*
......@@ -2216,8 +2218,6 @@ void vt_console_print(struct console *co, const char * b, unsigned count)
clear_bit(0, &printing);
}
struct tty_driver *console_driver;
static struct tty_driver *vt_console_device(struct console *c, int *index)
{
*index = c->index ? c->index-1 : fg_console;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment