mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-12 05:48:39 +08:00
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:
parent
d1e1355aef
commit
5bb98b2cfc
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user