Commit 5bb98b2c authored by Emil Renner Berthing's avatar Emil Renner Berthing Committed by Jakub Kicinski

arcnet: use new tasklet API

This converts the driver to use the new tasklet API introduced in
commit 12cc923f ("tasklet: Introduce new initialization API")
Signed-off-by: default avatarEmil Renner Berthing <kernel@esmil.dk>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent d1e1355a
......@@ -427,9 +427,9 @@ static void reset_device_work(struct work_struct *work)
rtnl_unlock();
}
static void arcnet_reply_tasklet(unsigned long data)
static void arcnet_reply_tasklet(struct tasklet_struct *t)
{
struct arcnet_local *lp = (struct arcnet_local *)data;
struct arcnet_local *lp = from_tasklet(lp, t, reply_tasklet);
struct sk_buff *ackskb, *skb;
struct sock_exterr_skb *serr;
......@@ -530,8 +530,7 @@ int arcnet_open(struct net_device *dev)
arc_cont(D_PROTO, "\n");
}
tasklet_init(&lp->reply_tasklet, arcnet_reply_tasklet,
(unsigned long)lp);
tasklet_setup(&lp->reply_tasklet, arcnet_reply_tasklet);
arc_printk(D_INIT, dev, "arcnet_open: resetting card.\n");
......
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