linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tty: fill console_driver->driver_name
@ 2019-11-07  1:25 Cheng Chao
  2019-11-11 14:27 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Cheng Chao @ 2019-11-07  1:25 UTC (permalink / raw)
  To: gregkh, jslaby, nico, textshell, sam, daniel.vetter, mpatocka, ghalat
  Cc: linux-kernel, Cheng Chao

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@gmail.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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-12  1:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-07  1:25 [PATCH] tty: fill console_driver->driver_name Cheng Chao
2019-11-11 14:27 ` Greg KH
2019-11-12  1:00   ` Cheng Chao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).