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:
committed by
Jakub Kicinski
parent
d1e1355aef
commit
5bb98b2cfc
@@ -427,9 +427,9 @@ out:
|
|||||||
rtnl_unlock();
|
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 sk_buff *ackskb, *skb;
|
||||||
struct sock_exterr_skb *serr;
|
struct sock_exterr_skb *serr;
|
||||||
@@ -530,8 +530,7 @@ int arcnet_open(struct net_device *dev)
|
|||||||
arc_cont(D_PROTO, "\n");
|
arc_cont(D_PROTO, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
tasklet_init(&lp->reply_tasklet, arcnet_reply_tasklet,
|
tasklet_setup(&lp->reply_tasklet, arcnet_reply_tasklet);
|
||||||
(unsigned long)lp);
|
|
||||||
|
|
||||||
arc_printk(D_INIT, dev, "arcnet_open: resetting card.\n");
|
arc_printk(D_INIT, dev, "arcnet_open: resetting card.\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user