aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/zd1201.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/zd1201.c b/drivers/net/wireless/zd1201.c
index 3404807b3e12..b45c27d42fd8 100644
--- a/drivers/net/wireless/zd1201.c
+++ b/drivers/net/wireless/zd1201.c
@@ -1841,10 +1841,6 @@ static void zd1201_disconnect(struct usb_interface *interface)
1841 if (!zd) 1841 if (!zd)
1842 return; 1842 return;
1843 usb_set_intfdata(interface, NULL); 1843 usb_set_intfdata(interface, NULL);
1844 if (zd->dev) {
1845 unregister_netdev(zd->dev);
1846 free_netdev(zd->dev);
1847 }
1848 1844
1849 hlist_for_each_entry_safe(frag, node, node2, &zd->fraglist, fnode) { 1845 hlist_for_each_entry_safe(frag, node, node2, &zd->fraglist, fnode) {
1850 hlist_del_init(&frag->fnode); 1846 hlist_del_init(&frag->fnode);
@@ -1860,7 +1856,11 @@ static void zd1201_disconnect(struct usb_interface *interface)
1860 usb_kill_urb(zd->rx_urb); 1856 usb_kill_urb(zd->rx_urb);
1861 usb_free_urb(zd->rx_urb); 1857 usb_free_urb(zd->rx_urb);
1862 } 1858 }
1863 kfree(zd); 1859
1860 if (zd->dev) {
1861 unregister_netdev(zd->dev);
1862 free_netdev(zd->dev);
1863 }
1864} 1864}
1865 1865
1866#ifdef CONFIG_PM 1866#ifdef CONFIG_PM