mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
drivers: tty: pnx8xxx: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais <allen.lkml@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
305615127a
commit
9b363c83c6
@ -666,9 +666,8 @@ static void __init pnx8xxx_init_ports(void)
|
||||
first = 0;
|
||||
|
||||
for (i = 0; i < NR_PORTS; i++) {
|
||||
init_timer(&pnx8xxx_ports[i].timer);
|
||||
pnx8xxx_ports[i].timer.function = pnx8xxx_timeout;
|
||||
pnx8xxx_ports[i].timer.data = (unsigned long)&pnx8xxx_ports[i];
|
||||
setup_timer(&pnx8xxx_ports[i].timer, pnx8xxx_timeout,
|
||||
(unsigned long)&pnx8xxx_ports[i]);
|
||||
pnx8xxx_ports[i].port.ops = &pnx8xxx_pops;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user