console: move console_init() out of tty_io.c
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 12 Apr 2017 22:37:14 +0000 (18:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Apr 2017 16:01:52 +0000 (18:01 +0200)
commit0c688614dcce84dfdbb305fd1c399c06cecea745
tree5d96d52fe1b750645adb8c9b433bb98e6c801015
parent72f1b85a045e3db4d21e9531bdc605157fa224a7
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>
drivers/tty/tty_io.c
include/linux/console.h
include/linux/tty.h
init/main.c
kernel/printk/printk.c