summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2017-09-21 20:04:39 +0300
committerDavid S. Miller <davem@davemloft.net>2017-09-21 21:44:40 +0300
commitdffec39fb185837468486b6bbd00b18f35e38c82 (patch)
treef1a85a8d4bcd3497e84c57e1adf5541893c02011
parentf347bd6b5f6599fe67d040758947dbf9bdd89195 (diff)
downloadlinux-dffec39fb185837468486b6bbd00b18f35e38c82.tar.xz
drivers: net: cisco_hdlc: 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/wan/hdlc_cisco.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wan/hdlc_cisco.c b/drivers/net/wan/hdlc_cisco.c
index a408abc25512..c696d42f4502 100644
--- a/drivers/net/wan/hdlc_cisco.c
+++ b/drivers/net/wan/hdlc_cisco.c
@@ -293,10 +293,8 @@ static void cisco_start(struct net_device *dev)
st->up = st->txseq = st->rxseq = 0;
spin_unlock_irqrestore(&st->lock, flags);
- init_timer(&st->timer);
+ setup_timer(&st->timer, cisco_timer, (unsigned long)dev);
st->timer.expires = jiffies + HZ; /* First poll after 1 s */
- st->timer.function = cisco_timer;
- st->timer.data = (unsigned long)dev;
add_timer(&st->timer);
}