Commit cac40a45 authored by Allen Pais's avatar Allen Pais Committed by David S. Miller

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

Use setup_timer function instead of initializing timer with the
    function and data fields.
Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6c438244
...@@ -733,10 +733,9 @@ static int a2065_init_one(struct zorro_dev *z, ...@@ -733,10 +733,9 @@ static int a2065_init_one(struct zorro_dev *z,
dev->watchdog_timeo = 5*HZ; dev->watchdog_timeo = 5*HZ;
dev->dma = 0; dev->dma = 0;
init_timer(&priv->multicast_timer); setup_timer(&priv->multicast_timer,
priv->multicast_timer.data = (unsigned long) dev; (void(*)(unsigned long))lance_set_multicast,
priv->multicast_timer.function = (unsigned long)dev);
(void (*)(unsigned long))lance_set_multicast;
err = register_netdev(dev); err = register_netdev(dev);
if (err) { if (err) {
......
Markdown is supported
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