summaryrefslogtreecommitdiffstats
path: root/drivers/net/arcnet
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2017-09-21 19:04:58 +0200
committerDavid S. Miller <davem@davemloft.net>2017-09-21 20:44:42 +0200
commitfe9bfe207e200f901361681bf1497386068f1df2 (patch)
treefcc44f4f785ad7e42ac8fb6a48d2f4b3252d88b9 /drivers/net/arcnet
parentdrivers: net: can: use setup_timer() helper. (diff)
downloadlinux-fe9bfe207e200f901361681bf1497386068f1df2.tar.xz
linux-fe9bfe207e200f901361681bf1497386068f1df2.zip
drivers: net: arcnet: 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>
Diffstat (limited to 'drivers/net/arcnet')
-rw-r--r--drivers/net/arcnet/arcnet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c
index fcfccbb3d9a2..13236b2cdf13 100644
--- a/drivers/net/arcnet/arcnet.c
+++ b/drivers/net/arcnet/arcnet.c
@@ -450,9 +450,7 @@ struct net_device *alloc_arcdev(const char *name)
lp->dev = dev;
spin_lock_init(&lp->lock);
- init_timer(&lp->timer);
- lp->timer.data = (unsigned long) dev;
- lp->timer.function = arcnet_timer;
+ setup_timer(&lp->timer, arcnet_timer, (unsigned long)dev);
}
return dev;