1
0
mirror of https://github.com/bashrc/LKMPG.git synced 2018-06-11 03:06:54 +02:00

Use timer_setup rather than init_timer

This commit is contained in:
Bob Mottram
2018-02-15 12:26:53 +00:00
parent c33eab0e0c
commit 33080c0e9d

View File

@@ -74,9 +74,7 @@ static int __init kbleds_init(void)
/*
* Set up the LED blink timer the first time
*/
init_timer(&my_timer);
my_timer.function = &my_timer_func;
my_timer.data = (unsigned long)&kbledstatus;
timer_setup(&my_timer, (void*)&my_timer_func, (unsigned long)&kbledstatus);
my_timer.expires = jiffies + BLINK_DELAY;
add_timer(&my_timer);