arcnet: use new tasklet API

This converts the driver to use the new tasklet API introduced in
commit 12cc923f1c ("tasklet: Introduce new initialization API")

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Emil Renner Berthing 2021-01-31 00:47:22 +01:00 committed by Jakub Kicinski
parent d1e1355aef
commit 5bb98b2cfc

View File

@ -427,9 +427,9 @@ out:
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");