diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2011-05-07 11:27:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-10 15:54:48 -0400 |
commit | 9a24af1136e6d08c73010205caa282f46223aed5 (patch) | |
tree | 38cff7079702e3c8917a1b6e19425fa3c4c2347e | |
parent | 1816fcdcbbe9ff42ba1a9dac5198d18efb9d95e9 (diff) |
rt2x00: Fix rmmod hang of rt2800pci
txstatus_timer should only be deleted for USB devices, as it is only
initialized for USB devices.
Reported-by: Andreas Hartmann <andihartmann@01019freenet.de>
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 2eb5196977fd..c018d67aab8e 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -1159,9 +1159,9 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev) | |||
1159 | /* | 1159 | /* |
1160 | * Stop all work. | 1160 | * Stop all work. |
1161 | */ | 1161 | */ |
1162 | del_timer_sync(&rt2x00dev->txstatus_timer); | ||
1163 | cancel_work_sync(&rt2x00dev->intf_work); | 1162 | cancel_work_sync(&rt2x00dev->intf_work); |
1164 | if (rt2x00_is_usb(rt2x00dev)) { | 1163 | if (rt2x00_is_usb(rt2x00dev)) { |
1164 | del_timer_sync(&rt2x00dev->txstatus_timer); | ||
1165 | cancel_work_sync(&rt2x00dev->rxdone_work); | 1165 | cancel_work_sync(&rt2x00dev->rxdone_work); |
1166 | cancel_work_sync(&rt2x00dev->txdone_work); | 1166 | cancel_work_sync(&rt2x00dev->txdone_work); |
1167 | } | 1167 | } |