diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt61pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 49b29ff90c47..8a49d99df682 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -237,7 +237,6 @@ static const struct rt2x00debug rt61pci_rt2x00debug = { | |||
237 | }; | 237 | }; |
238 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ | 238 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ |
239 | 239 | ||
240 | #ifdef CONFIG_RT2X00_LIB_RFKILL | ||
241 | static int rt61pci_rfkill_poll(struct rt2x00_dev *rt2x00dev) | 240 | static int rt61pci_rfkill_poll(struct rt2x00_dev *rt2x00dev) |
242 | { | 241 | { |
243 | u32 reg; | 242 | u32 reg; |
@@ -245,9 +244,6 @@ static int rt61pci_rfkill_poll(struct rt2x00_dev *rt2x00dev) | |||
245 | rt2x00pci_register_read(rt2x00dev, MAC_CSR13, ®); | 244 | rt2x00pci_register_read(rt2x00dev, MAC_CSR13, ®); |
246 | return rt2x00_get_field32(reg, MAC_CSR13_BIT5); | 245 | return rt2x00_get_field32(reg, MAC_CSR13_BIT5); |
247 | } | 246 | } |
248 | #else | ||
249 | #define rt61pci_rfkill_poll NULL | ||
250 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ | ||
251 | 247 | ||
252 | #ifdef CONFIG_RT2X00_LIB_LEDS | 248 | #ifdef CONFIG_RT2X00_LIB_LEDS |
253 | static void rt61pci_brightness_set(struct led_classdev *led_cdev, | 249 | static void rt61pci_brightness_set(struct led_classdev *led_cdev, |
@@ -2338,10 +2334,8 @@ static int rt61pci_init_eeprom(struct rt2x00_dev *rt2x00dev) | |||
2338 | /* | 2334 | /* |
2339 | * Detect if this device has an hardware controlled radio. | 2335 | * Detect if this device has an hardware controlled radio. |
2340 | */ | 2336 | */ |
2341 | #ifdef CONFIG_RT2X00_LIB_RFKILL | ||
2342 | if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) | 2337 | if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) |
2343 | __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags); | 2338 | __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags); |
2344 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ | ||
2345 | 2339 | ||
2346 | /* | 2340 | /* |
2347 | * Read frequency offset and RF programming sequence. | 2341 | * Read frequency offset and RF programming sequence. |
@@ -2728,6 +2722,7 @@ static const struct ieee80211_ops rt61pci_mac80211_ops = { | |||
2728 | .conf_tx = rt61pci_conf_tx, | 2722 | .conf_tx = rt61pci_conf_tx, |
2729 | .get_tx_stats = rt2x00mac_get_tx_stats, | 2723 | .get_tx_stats = rt2x00mac_get_tx_stats, |
2730 | .get_tsf = rt61pci_get_tsf, | 2724 | .get_tsf = rt61pci_get_tsf, |
2725 | .rfkill_poll = rt2x00mac_rfkill_poll, | ||
2731 | }; | 2726 | }; |
2732 | 2727 | ||
2733 | static const struct rt2x00lib_ops rt61pci_rt2x00_ops = { | 2728 | static const struct rt2x00lib_ops rt61pci_rt2x00_ops = { |