diff options
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index f8f7e6e47f80..e8c91fb71a52 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -80,8 +80,7 @@ static void rt2x00lib_start_link_tuner(struct rt2x00_dev *rt2x00dev) | |||
80 | 80 | ||
81 | static void rt2x00lib_stop_link_tuner(struct rt2x00_dev *rt2x00dev) | 81 | static void rt2x00lib_stop_link_tuner(struct rt2x00_dev *rt2x00dev) |
82 | { | 82 | { |
83 | if (delayed_work_pending(&rt2x00dev->link.work)) | 83 | cancel_delayed_work_sync(&rt2x00dev->link.work); |
84 | cancel_rearming_delayed_work(&rt2x00dev->link.work); | ||
85 | } | 84 | } |
86 | 85 | ||
87 | void rt2x00lib_reset_link_tuner(struct rt2x00_dev *rt2x00dev) | 86 | void rt2x00lib_reset_link_tuner(struct rt2x00_dev *rt2x00dev) |