summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/am79c961a.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-10-26 22:54:38 -0700
committerDavid S. Miller <davem@davemloft.net>2017-10-28 19:09:49 +0900
commitc6c52ba1514120db3ad2d36391ed37bafcfc43d7 (patch)
tree92154e5d57ad96d2e4c7ebc5371623092705565a /drivers/net/ethernet/amd/am79c961a.h
parentc63144e4dda7967f2419fa3c2cc5db1228a7fccf (diff)
downloadlinux-c6c52ba1514120db3ad2d36391ed37bafcfc43d7.tar.bz2
drivers/net: amd: 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: Tom Lendacky <thomas.lendacky@amd.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Allen Pais <allen.lkml@gmail.com> 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/amd/am79c961a.h')
-rw-r--r--drivers/net/ethernet/amd/am79c961a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/am79c961a.h b/drivers/net/ethernet/amd/am79c961a.h
index 9f384b79507b..fc5088c70731 100644
--- a/drivers/net/ethernet/amd/am79c961a.h
+++ b/drivers/net/ethernet/amd/am79c961a.h
@@ -140,6 +140,7 @@ struct dev_priv {
unsigned long txhdr;
spinlock_t chip_lock;
struct timer_list timer;
+ struct net_device *dev;
};
#endif