diff options
Diffstat (limited to 'drivers/misc/pti.c')
-rw-r--r-- | drivers/misc/pti.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c index 9a35db3d27fc..383133b201a1 100644 --- a/drivers/misc/pti.c +++ b/drivers/misc/pti.c | |||
@@ -907,20 +907,17 @@ static int __init pti_init(void) | |||
907 | 907 | ||
908 | /* First register module as tty device */ | 908 | /* First register module as tty device */ |
909 | 909 | ||
910 | pti_tty_driver = alloc_tty_driver(1); | 910 | pti_tty_driver = alloc_tty_driver(PTITTY_MINOR_NUM); |
911 | if (pti_tty_driver == NULL) { | 911 | if (pti_tty_driver == NULL) { |
912 | pr_err("%s(%d): Memory allocation failed for ptiTTY driver\n", | 912 | pr_err("%s(%d): Memory allocation failed for ptiTTY driver\n", |
913 | __func__, __LINE__); | 913 | __func__, __LINE__); |
914 | return -ENOMEM; | 914 | return -ENOMEM; |
915 | } | 915 | } |
916 | 916 | ||
917 | pti_tty_driver->owner = THIS_MODULE; | ||
918 | pti_tty_driver->magic = TTY_DRIVER_MAGIC; | ||
919 | pti_tty_driver->driver_name = DRIVERNAME; | 917 | pti_tty_driver->driver_name = DRIVERNAME; |
920 | pti_tty_driver->name = TTYNAME; | 918 | pti_tty_driver->name = TTYNAME; |
921 | pti_tty_driver->major = 0; | 919 | pti_tty_driver->major = 0; |
922 | pti_tty_driver->minor_start = PTITTY_MINOR_START; | 920 | pti_tty_driver->minor_start = PTITTY_MINOR_START; |
923 | pti_tty_driver->num = PTITTY_MINOR_NUM; | ||
924 | pti_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM; | 921 | pti_tty_driver->type = TTY_DRIVER_TYPE_SYSTEM; |
925 | pti_tty_driver->subtype = SYSTEM_TYPE_SYSCONS; | 922 | pti_tty_driver->subtype = SYSTEM_TYPE_SYSCONS; |
926 | pti_tty_driver->flags = TTY_DRIVER_REAL_RAW | | 923 | pti_tty_driver->flags = TTY_DRIVER_REAL_RAW | |