Commit fe9bfe20 authored by Allen Pais's avatar Allen Pais Committed by David S. Miller
Browse files

drivers: net: arcnet: use setup_timer() helper.

Use setup_timer function instead of initializing timer with the
    function and data fields.

Signed-off-by: default avatarAllen Pais <>
Signed-off-by: default avatarDavid S. Miller <>
parent 9f5ca881
......@@ -450,9 +450,7 @@ struct net_device *alloc_arcdev(const char *name)
lp->dev = dev;
lp-> = (unsigned long) dev;
lp->timer.function = arcnet_timer;
setup_timer(&lp->timer, arcnet_timer, (unsigned long)dev);
return dev;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment