projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f5ca88
)
drivers: net: arcnet: use setup_timer() helper.
author
Allen Pais
<allen.lkml@gmail.com>
Thu, 21 Sep 2017 17:04:58 +0000
(22:34 +0530)
committer
David S. Miller
<davem@davemloft.net>
Thu, 21 Sep 2017 18:44:42 +0000
(11:44 -0700)
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>
drivers/net/arcnet/arcnet.c
patch
|
blob
|
history
diff --git
a/drivers/net/arcnet/arcnet.c
b/drivers/net/arcnet/arcnet.c
index
fcfccbb
..
13236b2
100644
(file)
--- 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;