Commit 1999ad32 authored by Emil Renner Berthing's avatar Emil Renner Berthing Committed by Jakub Kicinski

net: usb: rtl8150: 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 f3163f1c
...@@ -577,9 +577,9 @@ static void free_skb_pool(rtl8150_t *dev) ...@@ -577,9 +577,9 @@ static void free_skb_pool(rtl8150_t *dev)
dev_kfree_skb(dev->rx_skb_pool[i]); 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; struct sk_buff *skb;
int status; int status;
...@@ -878,7 +878,7 @@ static int rtl8150_probe(struct usb_interface *intf, ...@@ -878,7 +878,7 @@ static int rtl8150_probe(struct usb_interface *intf,
return -ENOMEM; return -ENOMEM;
} }
tasklet_init(&dev->tl, rx_fixup, (unsigned long)dev); tasklet_setup(&dev->tl, rx_fixup);
spin_lock_init(&dev->rx_pool_lock); spin_lock_init(&dev->rx_pool_lock);
dev->udev = udev; dev->udev = udev;
......
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