diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2017-04-12 18:37:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-18 18:01:52 +0200 |
commit | 0c688614dcce84dfdbb305fd1c399c06cecea745 (patch) | |
tree | 5d96d52fe1b750645adb8c9b433bb98e6c801015 /drivers/tty | |
parent | 72f1b85a045e3db4d21e9531bdc605157fa224a7 (diff) | |
download | talos-obmc-linux-0c688614dcce84dfdbb305fd1c399c06cecea745.tar.gz talos-obmc-linux-0c688614dcce84dfdbb305fd1c399c06cecea745.zip |
console: move console_init() out of tty_io.c
All the console driver handling code lives in printk.c.
Move console_init() there as well so console support can still be used
when the TTY code is configured out. No logical changes from this patch.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/tty_io.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index dd0c1aa60402..8244b6199784 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -3584,30 +3584,6 @@ void tty_default_fops(struct file_operations *fops) *fops = tty_fops; } -/* - * Initialize the console device. This is called *early*, so - * we can't necessarily depend on lots of kernel help here. - * Just do some early initializations, and do the complex setup - * later. - */ -void __init console_init(void) -{ - initcall_t *call; - - /* Setup the default TTY line discipline. */ - n_tty_init(); - - /* - * set up the console device so that later boot sequences can - * inform about problems etc.. - */ - call = __con_initcall_start; - while (call < __con_initcall_end) { - (*call)(); - call++; - } -} - static char *tty_devnode(struct device *dev, umode_t *mode) { if (!mode) |