Skip to content

Commit 87cab16

Browse files
Jiri Slabygregkh
authored andcommitted
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>
1 parent 1a54a76 commit 87cab16

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/misc/pti.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,6 @@ static int __init pti_init(void)
920920
pti_tty_driver->name = TTYNAME;
921921
pti_tty_driver->major = 0;
922922
pti_tty_driver->minor_start = PTITTY_MINOR_START;
923-
pti_tty_driver->minor_num = PTITTY_MINOR_NUM;
924923
pti_tty_driver->num = PTITTY_MINOR_NUM;
925924
pti_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM;
926925
pti_tty_driver->subtype = SYSTEM_TYPE_SYSCONS;

‎include/linux/tty_driver.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ struct tty_driver {
299299
int name_base; /* offset of printed name */
300300
int major; /* major device number */
301301
int minor_start; /* start of minor device number */
302-
int minor_num; /* number of *possible* devices */
303302
int num; /* number of devices allocated */
304303
short type; /* type of tty driver */
305304
short subtype; /* subtype of tty driver */

0 commit comments

Comments
 (0)