Fix init ordering of /dev/console vs callers of modprobe
[sfrench/cifs-2.6.git] / drivers / char / tty_io.c
index d71f0fc34b467c6e7a7c25c0762321f90b7e3fa0..507441ac6edbcdb9c8fcb58da5d0ba34383eadbc 100644 (file)
@@ -3128,7 +3128,7 @@ static struct cdev tty_cdev, console_cdev;
  * Ok, now we can initialize the rest of the tty devices and can count
  * on memory allocations, interrupts etc..
  */
-static int __init tty_init(void)
+int __init tty_init(void)
 {
        cdev_init(&tty_cdev, &tty_fops);
        if (cdev_add(&tty_cdev, MKDEV(TTYAUX_MAJOR, 0), 1) ||
@@ -3149,4 +3149,4 @@ static int __init tty_init(void)
 #endif
        return 0;
 }
-module_init(tty_init);
+