TTY: remove minor_num from tty_driver
authorJiri Slaby <jslaby@suse.cz>
Mon, 5 Mar 2012 13:51:51 +0000 (14:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 19:30:21 +0000 (11:30 -0800)
It was added back in 2004 and never used for anything real. Remove the
only assignment in the tree as well.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/pti.c
include/linux/tty_driver.h

index 471ff4c85cd846b3725697781658c4f4c8b69579..9a35db3d27fc8604935332914cbae6c8a07480d5 100644 (file)
@@ -920,7 +920,6 @@ static int __init pti_init(void)
        pti_tty_driver->name                    = TTYNAME;
        pti_tty_driver->major                   = 0;
        pti_tty_driver->minor_start             = PTITTY_MINOR_START;
-       pti_tty_driver->minor_num               = PTITTY_MINOR_NUM;
        pti_tty_driver->num                     = PTITTY_MINOR_NUM;
        pti_tty_driver->type                    = TTY_DRIVER_TYPE_SYSTEM;
        pti_tty_driver->subtype                 = SYSTEM_TYPE_SYSCONS;
index 6e65493a5e6c8fb8f616ac85b52a3b43919dd068..e064f1704e200f3e3abcfb75476337fc4683c222 100644 (file)
@@ -299,7 +299,6 @@ struct tty_driver {
        int     name_base;      /* offset of printed name */
        int     major;          /* major device number */
        int     minor_start;    /* start of minor device number */
-       int     minor_num;      /* number of *possible* devices */
        int     num;            /* number of devices allocated */
        short   type;           /* type of tty driver */
        short   subtype;        /* subtype of tty driver */