mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
net: usb: rtl8150: 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
f3163f1cb8
commit
1999ad32d4
@ -577,9 +577,9 @@ static void free_skb_pool(rtl8150_t *dev)
|
||||
dev_kfree_skb(dev->rx_skb_pool[i]);
|
||||
}
|
||||
|
||||
static void rx_fixup(unsigned long data)
|
||||
static void rx_fixup(struct tasklet_struct *t)
|
||||
{
|
||||
struct rtl8150 *dev = (struct rtl8150 *)data;
|
||||
struct rtl8150 *dev = from_tasklet(dev, t, tl);
|
||||
struct sk_buff *skb;
|
||||
int status;
|
||||
|
||||
@ -878,7 +878,7 @@ static int rtl8150_probe(struct usb_interface *intf,
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
tasklet_init(&dev->tl, rx_fixup, (unsigned long)dev);
|
||||
tasklet_setup(&dev->tl, rx_fixup);
|
||||
spin_lock_init(&dev->rx_pool_lock);
|
||||
|
||||
dev->udev = udev;
|
||||
|
Loading…
Reference in New Issue
Block a user