mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-25 09:41:47 +08:00
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:
parent
8172c031a6
commit
b9b37fc39f
|
@ -61,7 +61,7 @@ static int __init kbleds_init(void)
|
||||||
pr_info("kbleds: finished scanning consoles\n");
|
pr_info("kbleds: finished scanning consoles\n");
|
||||||
|
|
||||||
my_driver = vc_cons[fg_console].d->port.tty->driver;
|
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. */
|
/* Set up the LED blink timer the first time. */
|
||||||
timer_setup(&my_timer, my_timer_func, 0);
|
timer_setup(&my_timer, my_timer_func, 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user