mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
Revert "net: usb: rtl8150: use new tasklet API"
This reverts commit 88892dabac which is
commit 1999ad32d4ff00581007543adffc465694b2e77b upstream.
It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.
Bug: 161946584
Change-Id: I69c9fbd5fada4d468c2d2f4713f36b0ff230a013
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
2461d9a37e
commit
fa82985d52
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(struct tasklet_struct *t)
|
||||
static void rx_fixup(unsigned long data)
|
||||
{
|
||||
struct rtl8150 *dev = from_tasklet(dev, t, tl);
|
||||
struct rtl8150 *dev = (struct rtl8150 *)data;
|
||||
struct sk_buff *skb;
|
||||
int status;
|
||||
|
||||
|
|
@ -899,7 +899,7 @@ static int rtl8150_probe(struct usb_interface *intf,
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
tasklet_setup(&dev->tl, rx_fixup);
|
||||
tasklet_init(&dev->tl, rx_fixup, (unsigned long)dev);
|
||||
spin_lock_init(&dev->rx_pool_lock);
|
||||
|
||||
dev->udev = udev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue