patch-2.1.36 linux/drivers/char/pty.c

Next file: linux/drivers/char/random.c
Previous file: linux/drivers/char/psaux.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.35/linux/drivers/char/pty.c linux/drivers/char/pty.c
@@ -13,6 +13,7 @@
 #include <linux/string.h>
 #include <linux/major.h>
 #include <linux/mm.h>
+#include <linux/init.h>
 
 #include <asm/uaccess.h>
 #include <asm/system.h>
@@ -224,7 +225,7 @@
         tty->termios->c_cflag |= (CS8 | CREAD);
 }
 
-int pty_init(void)
+__initfunc(int pty_init(void))
 {
 	memset(&pty_state, 0, sizeof(pty_state));
 	memset(&pty_driver, 0, sizeof(struct tty_driver));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov