summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/neterion/vxge/vxge-main.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-10-17 03:29:02 +0300
committerDavid S. Miller <davem@davemloft.net>2017-10-18 14:39:38 +0300
commit5a3a8962035277210098a6b498680769a8eb36b6 (patch)
tree766a3520b14f585b6e83ce83eaa06963fe0533ed /drivers/net/ethernet/neterion/vxge/vxge-main.h
parentd3e99b2d19b06030593761c658b648fd6427eaa1 (diff)
downloadlinux-5a3a8962035277210098a6b498680769a8eb36b6.tar.xz
net: vxge: 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. Cc: Jon Mason <jdmason@kudzu.us> Cc: "David S. Miller" <davem@davemloft.net> Cc: Miroslav Lichvar <mlichvar@redhat.com> Cc: Jarod Wilson <jarod@redhat.com> Cc: Eric Dumazet <edumazet@google.com> Cc: stephen hemminger <stephen@networkplumber.org> Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion/vxge/vxge-main.h')
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-main.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.h b/drivers/net/ethernet/neterion/vxge/vxge-main.h
index 3a79d93b8445..59a57ff5e96a 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-main.h
+++ b/drivers/net/ethernet/neterion/vxge/vxge-main.h
@@ -417,12 +417,10 @@ struct vxge_tx_priv {
module_param(p, int, 0)
static inline
-void vxge_os_timer(struct timer_list *timer, void (*func)(unsigned long data),
- struct vxgedev *vdev, unsigned long timeout)
+void vxge_os_timer(struct timer_list *timer, void (*func)(struct timer_list *),
+ unsigned long timeout)
{
- init_timer(timer);
- timer->function = func;
- timer->data = (unsigned long)vdev;
+ timer_setup(timer, func, 0);
mod_timer(timer, jiffies + timeout);
}