diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 22:34:42 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 11:44:40 -0700 |
commit | f891f36603dff38a15390e5c950e8ac66f73352b (patch) | |
tree | 1843118702b83b0cdba949dfa63d479348022ede | |
parent | e998092f7b7c2ce3199db91177aa43397a3f76d7 (diff) | |
download | linux-f891f36603dff38a15390e5c950e8ac66f73352b.tar.gz linux-f891f36603dff38a15390e5c950e8ac66f73352b.tar.bz2 linux-f891f36603dff38a15390e5c950e8ac66f73352b.zip |
drivers: net: sun: cassini: 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/sun/cassini.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/sun/cassini.c b/drivers/net/ethernet/sun/cassini.c index 382993c1561c..a74d78f64af9 100644 --- a/drivers/net/ethernet/sun/cassini.c +++ b/drivers/net/ethernet/sun/cassini.c @@ -5039,10 +5039,7 @@ static int cas_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) spin_lock_init(&cp->stat_lock[N_TX_RINGS]); mutex_init(&cp->pm_mutex); - init_timer(&cp->link_timer); - cp->link_timer.function = cas_link_timer; - cp->link_timer.data = (unsigned long) cp; - + setup_timer(&cp->link_timer, cas_link_timer, (unsigned long)cp); #if 1 /* Just in case the implementation of atomic operations * change so that an explicit initialization is necessary. |