Skip to content

Commit

Permalink
net: usb: rtl8150: use new tasklet API
Browse files Browse the repository at this point in the history
This converts the driver to use the new tasklet API introduced in
commit 12cc923 ("tasklet: Introduce new initialization API")

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Emil Renner Berthing authored and Jakub Kicinski committed Feb 2, 2021
1 parent f3163f1 commit 1999ad3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/usb/rtl8150.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1999ad3

Please sign in to comment.