diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 18:24:15 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 15:48:46 -0700 |
commit | e53a84b2b47119cbb895a4a83e6675ec50cf9fe5 (patch) | |
tree | 253d7216a658b63e3418e689f1b92e22453c30f9 | |
parent | 802be571348681a8ee052850e47b9652de7e05d4 (diff) | |
download | linux-e53a84b2b47119cbb895a4a83e6675ec50cf9fe5.tar.bz2 |
net: usb: catc: 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: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/usb/catc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index dbc90313f472..aeb62e17d19d 100644 --- a/drivers/net/usb/catc.c +++ b/drivers/net/usb/catc.c @@ -805,9 +805,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id spin_lock_init(&catc->tx_lock); spin_lock_init(&catc->ctrl_lock); - init_timer(&catc->timer); - catc->timer.data = (long) catc; - catc->timer.function = catc_stats_timer; + setup_timer(&catc->timer, catc_stats_timer, (long)catc); catc->ctrl_urb = usb_alloc_urb(0, GFP_KERNEL); catc->tx_urb = usb_alloc_urb(0, GFP_KERNEL); |