diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index f36fecd3fd264a67cf7d66b2fd8e74369a38f406..c927f42c8e4d95f2377c6db3dee57b4d1fe9b7d4 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -4048,10 +4048,6 @@ void __init console_init(void) } } -#ifdef CONFIG_VT -extern int vty_init(void); -#endif - static int __init tty_class_init(void) { tty_class = class_create(THIS_MODULE, "tty"); diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index feb5e99a1079c97c0854669fcf46fcca595ab5f3..9448ffbdcbf62937047a69f1281116f133d5c079 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h @@ -77,6 +77,7 @@ void change_console(struct vc_data *new_vc); void reset_vc(struct vc_data *vc); extern int unbind_con_driver(const struct consw *csw, int first, int last, int deflt); +int vty_init(void); /* * vc_screen.c shares this temporary buffer with the console write code so that