Commit 36b0e6a7 authored by Eric Valette's avatar Eric Valette Committed by Greg Kroah-Hartman

[PATCH] USB: rtl8150.c ethernet driver : usb_unlink_urb ->usb_kill_urb

While we are looking at this driver, here is a way to avoid one full
page of annoying messages at shutdown/module unload.
Signed-off-by: default avatarEric Valette <Eric.Valette@free.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 1db17dc9
......@@ -344,7 +344,7 @@ static int rtl8150_set_mac_address(struct net_device *netdev, void *p)
static int rtl8150_reset(rtl8150_t * dev)
{
u8 data = 0x11;
u8 data = 0x10;
int i = HZ;
set_registers(dev, CR, 1, &data);
......@@ -392,10 +392,10 @@ static void free_all_urbs(rtl8150_t * dev)
static void unlink_all_urbs(rtl8150_t * dev)
{
usb_unlink_urb(dev->rx_urb);
usb_unlink_urb(dev->tx_urb);
usb_unlink_urb(dev->intr_urb);
usb_unlink_urb(dev->ctrl_urb);
usb_kill_urb(dev->rx_urb);
usb_kill_urb(dev->tx_urb);
usb_kill_urb(dev->intr_urb);
usb_kill_urb(dev->ctrl_urb);
}
static inline struct sk_buff *pull_skb(rtl8150_t *dev)
......@@ -663,7 +663,7 @@ static void rtl8150_tx_timeout(struct net_device *netdev)
return;
warn("%s: Tx timeout.", netdev->name);
dev->tx_urb->transfer_flags |= URB_ASYNC_UNLINK;
usb_unlink_urb(dev->tx_urb);
usb_kill_urb(dev->tx_urb);
dev->stats.tx_errors++;
}
......
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