[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1573089948-5944-1-git-send-email-cs.os.kernel@gmail.com>
Date: Thu, 7 Nov 2019 09:25:48 +0800
From: Cheng Chao <cs.os.kernel@...il.com>
To: gregkh@...uxfoundation.org, jslaby@...e.com, nico@...xnic.net,
textshell@...uujin.de, sam@...nborg.org, daniel.vetter@...ll.ch,
mpatocka@...hat.com, ghalat@...hat.com
Cc: linux-kernel@...r.kernel.org, Cheng Chao <cs.os.kernel@...il.com>
Subject: [PATCH] tty: fill console_driver->driver_name
cat /proc/tty/drivers
...
unknown /dev/tty 4 1-63 console
----------------------------------
after this patch:
cat /proc/tty/drivers
...
console /dev/tty 4 1-63 console
Signed-off-by: Cheng Chao <cs.os.kernel@...il.com>
---
drivers/tty/vt/vt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 34aa39d..981eee9 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -3440,6 +3440,7 @@ int __init vty_init(const struct file_operations *console_fops)
if (!console_driver)
panic("Couldn't allocate console driver\n");
+ console_driver->driver_name = "console";
console_driver->name = "tty";
console_driver->name_base = 1;
console_driver->major = TTY_MAJOR;
--
2.4.11
Powered by blists - more mailing lists