summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2017-09-21 22:35:10 +0530
committerDavid S. Miller <davem@davemloft.net>2017-09-21 11:44:43 -0700
commit7c214194de36217c06b0dc4ed64d9cf251b261df (patch)
tree4a363e9dd15c09a813f0cc4f7fb905e894f1c8c2
parentcac40a458ae68b41955cc55a80fc9e0166e429b1 (diff)
downloadop-kernel-dev-7c214194de36217c06b0dc4ed64d9cf251b261df.zip
op-kernel-dev-7c214194de36217c06b0dc4ed64d9cf251b261df.tar.gz
drivers: net: adi: 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/adi/bfin_mac.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
index a251de8..0658cde 100644
--- a/drivers/net/ethernet/adi/bfin_mac.c
+++ b/drivers/net/ethernet/adi/bfin_mac.c
@@ -1650,9 +1650,8 @@ static int bfin_mac_probe(struct platform_device *pdev)
ndev->netdev_ops = &bfin_mac_netdev_ops;
ndev->ethtool_ops = &bfin_mac_ethtool_ops;
- init_timer(&lp->tx_reclaim_timer);
- lp->tx_reclaim_timer.data = (unsigned long)lp;
- lp->tx_reclaim_timer.function = tx_reclaim_skb_timeout;
+ setup_timer(&lp->tx_reclaim_timer, tx_reclaim_skb_timeout,
+ (unsigned long)lp);
lp->flags = 0;
netif_napi_add(ndev, &lp->napi, bfin_mac_poll, CONFIG_BFIN_RX_DESC_NUM);
OpenPOWER on IntegriCloud