mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 11:54:14 -04:00
net: usb: rtl8150: use new tasklet API
[ Upstream commit 1999ad32d4ff00581007543adffc465694b2e77b ]
This converts the driver to use the new tasklet API introduced in
commit 12cc923f1ccc ("tasklet: Introduce new initialization API")
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 90b7f2961798 ("net: usb: rtl8150: enable basic endpoint checking")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
21dc5a1de2
commit
88892dabac
1 changed files with 3 additions and 3 deletions
|
|
@ -597,9 +597,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;
|
||||
|
||||
|
|
@ -899,7 +899,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 a new issue