diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-03-05 08:51:51 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-08 14:30:21 -0500 |
commit | 87cab16beb882d3f9e61a2c0184fa7cf76de1f90 (patch) | |
tree | 166a09ff5613f9f21e433348c743198374361abc | |
parent | 1a54a76d5171f3ffd89eb69f6f38d535724e3d05 (diff) |
TTY: remove minor_num from tty_driver
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>
-rw-r--r-- | drivers/misc/pti.c | 1 | ||||
-rw-r--r-- | include/linux/tty_driver.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c index 471ff4c85cd8..9a35db3d27fc 100644 --- a/drivers/misc/pti.c +++ b/drivers/misc/pti.c | |||
@@ -920,7 +920,6 @@ static int __init pti_init(void) | |||
920 | pti_tty_driver->name = TTYNAME; | 920 | pti_tty_driver->name = TTYNAME; |
921 | pti_tty_driver->major = 0; | 921 | pti_tty_driver->major = 0; |
922 | pti_tty_driver->minor_start = PTITTY_MINOR_START; | 922 | pti_tty_driver->minor_start = PTITTY_MINOR_START; |
923 | pti_tty_driver->minor_num = PTITTY_MINOR_NUM; | ||
924 | pti_tty_driver->num = PTITTY_MINOR_NUM; | 923 | pti_tty_driver->num = PTITTY_MINOR_NUM; |
925 | pti_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM; | 924 | pti_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM; |
926 | pti_tty_driver->subtype = SYSTEM_TYPE_SYSCONS; | 925 | pti_tty_driver->subtype = SYSTEM_TYPE_SYSCONS; |
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index 6e65493a5e6c..e064f1704e20 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h | |||
@@ -299,7 +299,6 @@ struct tty_driver { | |||
299 | int name_base; /* offset of printed name */ | 299 | int name_base; /* offset of printed name */ |
300 | int major; /* major device number */ | 300 | int major; /* major device number */ |
301 | int minor_start; /* start of minor device number */ | 301 | int minor_start; /* start of minor device number */ |
302 | int minor_num; /* number of *possible* devices */ | ||
303 | int num; /* number of devices allocated */ | 302 | int num; /* number of devices allocated */ |
304 | short type; /* type of tty driver */ | 303 | short type; /* type of tty driver */ |
305 | short subtype; /* subtype of tty driver */ | 304 | short subtype; /* subtype of tty driver */ |