kbleds: Replace magic with driver_name

Since the commit 5052df99d3bc ("tty: remove TTY_DRIVER_MAGIC") [1],
the magic field no longer exists in the tty_driver. Instead of
printing the magic field, use the driver_name field.

[1] https://lore.kernel.org/linux-doc/20220907231109.htnfxzmr6wkuhn2v@tarta.nabijaczleweli.xyz/

Close #216
Close #217
This commit is contained in:
Chih-En Lin 2023-08-10 08:41:13 +08:00
parent 8172c031a6
commit b9b37fc39f

View File

@ -61,7 +61,7 @@ static int __init kbleds_init(void)
pr_info("kbleds: finished scanning consoles\n");
my_driver = vc_cons[fg_console].d->port.tty->driver;
pr_info("kbleds: tty driver magic %x\n", my_driver->magic);
pr_info("kbleds: tty driver name %s\n", my_driver->driver_name);
/* Set up the LED blink timer the first time. */
timer_setup(&my_timer, my_timer_func, 0);