diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-03-28 07:30:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-04 16:20:02 -0400 |
commit | aca7305be5cd9e07f042e6bf6547e7c5635f0041 (patch) | |
tree | feb5d6a5fcf65e2da3bb91609d740effbd255fc2 /drivers/net/wireless | |
parent | f78987cf8bb740b7a3636c08e003f1976f860cfc (diff) |
rt2x00: Remove DRIVER_SUPPORT_WATCHDOG flag
We can simply check if the driver registered the watchdog callback.
There's no need to have an additional flag for that.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00link.c | 11 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 1 |
5 files changed, 5 insertions, 10 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 979fe6596a2d..d9e6cec56cb5 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1796,7 +1796,6 @@ static int rt2500usb_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
1796 | __set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags); | 1796 | __set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags); |
1797 | __set_bit(DRIVER_REQUIRE_COPY_IV, &rt2x00dev->flags); | 1797 | __set_bit(DRIVER_REQUIRE_COPY_IV, &rt2x00dev->flags); |
1798 | } | 1798 | } |
1799 | __set_bit(DRIVER_SUPPORT_WATCHDOG, &rt2x00dev->flags); | ||
1800 | __set_bit(DRIVER_REQUIRE_SW_SEQNO, &rt2x00dev->flags); | 1799 | __set_bit(DRIVER_REQUIRE_SW_SEQNO, &rt2x00dev->flags); |
1801 | 1800 | ||
1802 | /* | 1801 | /* |
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 4e368657a83c..1c99a4f449f5 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -564,7 +564,6 @@ static int rt2800usb_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
564 | if (!modparam_nohwcrypt) | 564 | if (!modparam_nohwcrypt) |
565 | __set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags); | 565 | __set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags); |
566 | __set_bit(DRIVER_SUPPORT_LINK_TUNING, &rt2x00dev->flags); | 566 | __set_bit(DRIVER_SUPPORT_LINK_TUNING, &rt2x00dev->flags); |
567 | __set_bit(DRIVER_SUPPORT_WATCHDOG, &rt2x00dev->flags); | ||
568 | __set_bit(DRIVER_REQUIRE_HT_TX_DESC, &rt2x00dev->flags); | 567 | __set_bit(DRIVER_REQUIRE_HT_TX_DESC, &rt2x00dev->flags); |
569 | 568 | ||
570 | /* | 569 | /* |
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index a3940d7300a4..60b1cb05a70d 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -674,7 +674,6 @@ enum rt2x00_flags { | |||
674 | DRIVER_SUPPORT_CONTROL_FILTER_PSPOLL, | 674 | DRIVER_SUPPORT_CONTROL_FILTER_PSPOLL, |
675 | DRIVER_SUPPORT_PRE_TBTT_INTERRUPT, | 675 | DRIVER_SUPPORT_PRE_TBTT_INTERRUPT, |
676 | DRIVER_SUPPORT_LINK_TUNING, | 676 | DRIVER_SUPPORT_LINK_TUNING, |
677 | DRIVER_SUPPORT_WATCHDOG, | ||
678 | 677 | ||
679 | /* | 678 | /* |
680 | * Driver configuration | 679 | * Driver configuration |
diff --git a/drivers/net/wireless/rt2x00/rt2x00link.c b/drivers/net/wireless/rt2x00/rt2x00link.c index c975b0a12e95..fc8cee91b54e 100644 --- a/drivers/net/wireless/rt2x00/rt2x00link.c +++ b/drivers/net/wireless/rt2x00/rt2x00link.c | |||
@@ -413,12 +413,11 @@ void rt2x00link_start_watchdog(struct rt2x00_dev *rt2x00dev) | |||
413 | { | 413 | { |
414 | struct link *link = &rt2x00dev->link; | 414 | struct link *link = &rt2x00dev->link; |
415 | 415 | ||
416 | if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) || | 416 | if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) && |
417 | !test_bit(DRIVER_SUPPORT_WATCHDOG, &rt2x00dev->flags)) | 417 | rt2x00dev->ops->lib->watchdog) |
418 | return; | 418 | ieee80211_queue_delayed_work(rt2x00dev->hw, |
419 | 419 | &link->watchdog_work, | |
420 | ieee80211_queue_delayed_work(rt2x00dev->hw, | 420 | WATCHDOG_INTERVAL); |
421 | &link->watchdog_work, WATCHDOG_INTERVAL); | ||
422 | } | 421 | } |
423 | 422 | ||
424 | void rt2x00link_stop_watchdog(struct rt2x00_dev *rt2x00dev) | 423 | void rt2x00link_stop_watchdog(struct rt2x00_dev *rt2x00dev) |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 02f1148c577e..149e4f928325 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -2209,7 +2209,6 @@ static int rt73usb_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
2209 | if (!modparam_nohwcrypt) | 2209 | if (!modparam_nohwcrypt) |
2210 | __set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags); | 2210 | __set_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags); |
2211 | __set_bit(DRIVER_SUPPORT_LINK_TUNING, &rt2x00dev->flags); | 2211 | __set_bit(DRIVER_SUPPORT_LINK_TUNING, &rt2x00dev->flags); |
2212 | __set_bit(DRIVER_SUPPORT_WATCHDOG, &rt2x00dev->flags); | ||
2213 | 2212 | ||
2214 | /* | 2213 | /* |
2215 | * Set the rssi offset. | 2214 | * Set the rssi offset. |