Commit f6fd8918 authored by Kees Cook's avatar Kees Cook Committed by David S. Miller

drivers/net: hamradio/yam: Convert timers to use timer_setup()

In preparation for unconditionally passing the struct timer_list pointer to
all timer callbacks, switch to using the new timer_setup() and from_timer()
to pass the timer pointer explicitly. Initialization was entirely missing.

Cc: Jean-Paul Roubelat <jpr@f6fbb.org>
Cc: linux-hams@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 550acfb3
...@@ -647,7 +647,7 @@ static void yam_arbitrate(struct net_device *dev) ...@@ -647,7 +647,7 @@ static void yam_arbitrate(struct net_device *dev)
yam_start_tx(dev, yp); yam_start_tx(dev, yp);
} }
static void yam_dotimer(unsigned long dummy) static void yam_dotimer(struct timer_list *unused)
{ {
int i; int i;
...@@ -1164,7 +1164,7 @@ static int __init yam_init_driver(void) ...@@ -1164,7 +1164,7 @@ static int __init yam_init_driver(void)
} }
yam_timer.function = yam_dotimer; timer_setup(&yam_timer, yam_dotimer, 0);
yam_timer.expires = jiffies + HZ / 100; yam_timer.expires = jiffies + HZ / 100;
add_timer(&yam_timer); add_timer(&yam_timer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment