diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 22:34:24 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 11:44:39 -0700 |
commit | 334e4a7d5505f59a741b0549f41082e29a914439 (patch) | |
tree | 86bce8998a409db47631652217bb1f68bd5f7749 | |
parent | cdc91b31b81abaa2cf491fd5e9007f4bcd45bc68 (diff) | |
download | talos-op-linux-334e4a7d5505f59a741b0549f41082e29a914439.tar.gz talos-op-linux-334e4a7d5505f59a741b0549f41082e29a914439.zip |
drivers: net: pcnet32: 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/ethernet/amd/pcnet32.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/amd/pcnet32.c b/drivers/net/ethernet/amd/pcnet32.c index 7f60d17819ce..e46153654016 100644 --- a/drivers/net/ethernet/amd/pcnet32.c +++ b/drivers/net/ethernet/amd/pcnet32.c @@ -1970,9 +1970,8 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev) lp->options |= PCNET32_PORT_MII; } - init_timer(&lp->watchdog_timer); - lp->watchdog_timer.data = (unsigned long)dev; - lp->watchdog_timer.function = (void *)&pcnet32_watchdog; + setup_timer(&lp->watchdog_timer, (void *)&pcnet32_watchdog, + (unsigned long)dev); /* The PCNET32-specific entries in the device structure. */ dev->netdev_ops = &pcnet32_netdev_ops; |