diff options
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00reg.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 2 |
8 files changed, 4 insertions, 24 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index b324917106e..5c88fdc136a 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -971,8 +971,7 @@ static int rt2400pci_init_bbp(struct rt2x00_dev *rt2x00dev) | |||
971 | static void rt2400pci_toggle_irq(struct rt2x00_dev *rt2x00dev, | 971 | static void rt2400pci_toggle_irq(struct rt2x00_dev *rt2x00dev, |
972 | enum dev_state state) | 972 | enum dev_state state) |
973 | { | 973 | { |
974 | int mask = (state == STATE_RADIO_IRQ_OFF) || | 974 | int mask = (state == STATE_RADIO_IRQ_OFF); |
975 | (state == STATE_RADIO_IRQ_OFF_ISR); | ||
976 | u32 reg; | 975 | u32 reg; |
977 | unsigned long flags; | 976 | unsigned long flags; |
978 | 977 | ||
@@ -1087,9 +1086,7 @@ static int rt2400pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1087 | rt2400pci_disable_radio(rt2x00dev); | 1086 | rt2400pci_disable_radio(rt2x00dev); |
1088 | break; | 1087 | break; |
1089 | case STATE_RADIO_IRQ_ON: | 1088 | case STATE_RADIO_IRQ_ON: |
1090 | case STATE_RADIO_IRQ_ON_ISR: | ||
1091 | case STATE_RADIO_IRQ_OFF: | 1089 | case STATE_RADIO_IRQ_OFF: |
1092 | case STATE_RADIO_IRQ_OFF_ISR: | ||
1093 | rt2400pci_toggle_irq(rt2x00dev, state); | 1090 | rt2400pci_toggle_irq(rt2x00dev, state); |
1094 | break; | 1091 | break; |
1095 | case STATE_DEEP_SLEEP: | 1092 | case STATE_DEEP_SLEEP: |
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index 7daa483c374..3ef1fb4185c 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1126,8 +1126,7 @@ static int rt2500pci_init_bbp(struct rt2x00_dev *rt2x00dev) | |||
1126 | static void rt2500pci_toggle_irq(struct rt2x00_dev *rt2x00dev, | 1126 | static void rt2500pci_toggle_irq(struct rt2x00_dev *rt2x00dev, |
1127 | enum dev_state state) | 1127 | enum dev_state state) |
1128 | { | 1128 | { |
1129 | int mask = (state == STATE_RADIO_IRQ_OFF) || | 1129 | int mask = (state == STATE_RADIO_IRQ_OFF); |
1130 | (state == STATE_RADIO_IRQ_OFF_ISR); | ||
1131 | u32 reg; | 1130 | u32 reg; |
1132 | unsigned long flags; | 1131 | unsigned long flags; |
1133 | 1132 | ||
@@ -1241,9 +1240,7 @@ static int rt2500pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1241 | rt2500pci_disable_radio(rt2x00dev); | 1240 | rt2500pci_disable_radio(rt2x00dev); |
1242 | break; | 1241 | break; |
1243 | case STATE_RADIO_IRQ_ON: | 1242 | case STATE_RADIO_IRQ_ON: |
1244 | case STATE_RADIO_IRQ_ON_ISR: | ||
1245 | case STATE_RADIO_IRQ_OFF: | 1243 | case STATE_RADIO_IRQ_OFF: |
1246 | case STATE_RADIO_IRQ_OFF_ISR: | ||
1247 | rt2500pci_toggle_irq(rt2x00dev, state); | 1244 | rt2500pci_toggle_irq(rt2x00dev, state); |
1248 | break; | 1245 | break; |
1249 | case STATE_DEEP_SLEEP: | 1246 | case STATE_DEEP_SLEEP: |
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 157516e0aab..01f385d5846 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1054,9 +1054,7 @@ static int rt2500usb_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1054 | rt2500usb_disable_radio(rt2x00dev); | 1054 | rt2500usb_disable_radio(rt2x00dev); |
1055 | break; | 1055 | break; |
1056 | case STATE_RADIO_IRQ_ON: | 1056 | case STATE_RADIO_IRQ_ON: |
1057 | case STATE_RADIO_IRQ_ON_ISR: | ||
1058 | case STATE_RADIO_IRQ_OFF: | 1057 | case STATE_RADIO_IRQ_OFF: |
1059 | case STATE_RADIO_IRQ_OFF_ISR: | ||
1060 | /* No support, but no error either */ | 1058 | /* No support, but no error either */ |
1061 | break; | 1059 | break; |
1062 | case STATE_DEEP_SLEEP: | 1060 | case STATE_DEEP_SLEEP: |
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index 31483c79a45..208ea5e966e 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -418,8 +418,7 @@ static int rt2800pci_init_queues(struct rt2x00_dev *rt2x00dev) | |||
418 | static void rt2800pci_toggle_irq(struct rt2x00_dev *rt2x00dev, | 418 | static void rt2800pci_toggle_irq(struct rt2x00_dev *rt2x00dev, |
419 | enum dev_state state) | 419 | enum dev_state state) |
420 | { | 420 | { |
421 | int mask = (state == STATE_RADIO_IRQ_ON) || | 421 | int mask = (state == STATE_RADIO_IRQ_ON); |
422 | (state == STATE_RADIO_IRQ_ON_ISR); | ||
423 | u32 reg; | 422 | u32 reg; |
424 | unsigned long flags; | 423 | unsigned long flags; |
425 | 424 | ||
@@ -564,9 +563,7 @@ static int rt2800pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
564 | rt2800pci_set_state(rt2x00dev, STATE_SLEEP); | 563 | rt2800pci_set_state(rt2x00dev, STATE_SLEEP); |
565 | break; | 564 | break; |
566 | case STATE_RADIO_IRQ_ON: | 565 | case STATE_RADIO_IRQ_ON: |
567 | case STATE_RADIO_IRQ_ON_ISR: | ||
568 | case STATE_RADIO_IRQ_OFF: | 566 | case STATE_RADIO_IRQ_OFF: |
569 | case STATE_RADIO_IRQ_OFF_ISR: | ||
570 | rt2800pci_toggle_irq(rt2x00dev, state); | 567 | rt2800pci_toggle_irq(rt2x00dev, state); |
571 | break; | 568 | break; |
572 | case STATE_DEEP_SLEEP: | 569 | case STATE_DEEP_SLEEP: |
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 3ebe473f855..3d2a944814b 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -253,9 +253,7 @@ static int rt2800usb_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
253 | rt2800usb_set_state(rt2x00dev, STATE_SLEEP); | 253 | rt2800usb_set_state(rt2x00dev, STATE_SLEEP); |
254 | break; | 254 | break; |
255 | case STATE_RADIO_IRQ_ON: | 255 | case STATE_RADIO_IRQ_ON: |
256 | case STATE_RADIO_IRQ_ON_ISR: | ||
257 | case STATE_RADIO_IRQ_OFF: | 256 | case STATE_RADIO_IRQ_OFF: |
258 | case STATE_RADIO_IRQ_OFF_ISR: | ||
259 | /* No support, but no error either */ | 257 | /* No support, but no error either */ |
260 | break; | 258 | break; |
261 | case STATE_DEEP_SLEEP: | 259 | case STATE_DEEP_SLEEP: |
diff --git a/drivers/net/wireless/rt2x00/rt2x00reg.h b/drivers/net/wireless/rt2x00/rt2x00reg.h index e8259ae48ce..6f867eec49c 100644 --- a/drivers/net/wireless/rt2x00/rt2x00reg.h +++ b/drivers/net/wireless/rt2x00/rt2x00reg.h | |||
@@ -85,8 +85,6 @@ enum dev_state { | |||
85 | STATE_RADIO_OFF, | 85 | STATE_RADIO_OFF, |
86 | STATE_RADIO_IRQ_ON, | 86 | STATE_RADIO_IRQ_ON, |
87 | STATE_RADIO_IRQ_OFF, | 87 | STATE_RADIO_IRQ_OFF, |
88 | STATE_RADIO_IRQ_ON_ISR, | ||
89 | STATE_RADIO_IRQ_OFF_ISR, | ||
90 | }; | 88 | }; |
91 | 89 | ||
92 | /* | 90 | /* |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 351055d4b89..3afafabda08 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -1717,8 +1717,7 @@ static int rt61pci_init_bbp(struct rt2x00_dev *rt2x00dev) | |||
1717 | static void rt61pci_toggle_irq(struct rt2x00_dev *rt2x00dev, | 1717 | static void rt61pci_toggle_irq(struct rt2x00_dev *rt2x00dev, |
1718 | enum dev_state state) | 1718 | enum dev_state state) |
1719 | { | 1719 | { |
1720 | int mask = (state == STATE_RADIO_IRQ_OFF) || | 1720 | int mask = (state == STATE_RADIO_IRQ_OFF); |
1721 | (state == STATE_RADIO_IRQ_OFF_ISR); | ||
1722 | u32 reg; | 1721 | u32 reg; |
1723 | unsigned long flags; | 1722 | unsigned long flags; |
1724 | 1723 | ||
@@ -1852,9 +1851,7 @@ static int rt61pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1852 | rt61pci_disable_radio(rt2x00dev); | 1851 | rt61pci_disable_radio(rt2x00dev); |
1853 | break; | 1852 | break; |
1854 | case STATE_RADIO_IRQ_ON: | 1853 | case STATE_RADIO_IRQ_ON: |
1855 | case STATE_RADIO_IRQ_ON_ISR: | ||
1856 | case STATE_RADIO_IRQ_OFF: | 1854 | case STATE_RADIO_IRQ_OFF: |
1857 | case STATE_RADIO_IRQ_OFF_ISR: | ||
1858 | rt61pci_toggle_irq(rt2x00dev, state); | 1855 | rt61pci_toggle_irq(rt2x00dev, state); |
1859 | break; | 1856 | break; |
1860 | case STATE_DEEP_SLEEP: | 1857 | case STATE_DEEP_SLEEP: |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 330353ec5c9..aa9c61c7f37 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -1428,9 +1428,7 @@ static int rt73usb_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1428 | rt73usb_disable_radio(rt2x00dev); | 1428 | rt73usb_disable_radio(rt2x00dev); |
1429 | break; | 1429 | break; |
1430 | case STATE_RADIO_IRQ_ON: | 1430 | case STATE_RADIO_IRQ_ON: |
1431 | case STATE_RADIO_IRQ_ON_ISR: | ||
1432 | case STATE_RADIO_IRQ_OFF: | 1431 | case STATE_RADIO_IRQ_OFF: |
1433 | case STATE_RADIO_IRQ_OFF_ISR: | ||
1434 | /* No support, but no error either */ | 1432 | /* No support, but no error either */ |
1435 | break; | 1433 | break; |
1436 | case STATE_DEEP_SLEEP: | 1434 | case STATE_DEEP_SLEEP: |