diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/led.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/led.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath5k/led.c b/drivers/net/wireless/ath/ath5k/led.c index 2062d1190556..0beb7e7d6075 100644 --- a/drivers/net/wireless/ath/ath5k/led.c +++ b/drivers/net/wireless/ath/ath5k/led.c | |||
@@ -163,20 +163,14 @@ int ath5k_init_leds(struct ath5k_hw *ah) | |||
163 | { | 163 | { |
164 | int ret = 0; | 164 | int ret = 0; |
165 | struct ieee80211_hw *hw = ah->hw; | 165 | struct ieee80211_hw *hw = ah->hw; |
166 | #ifndef CONFIG_ATHEROS_AR231X | ||
167 | struct pci_dev *pdev = ah->pdev; | 166 | struct pci_dev *pdev = ah->pdev; |
168 | #endif | ||
169 | char name[ATH5K_LED_MAX_NAME_LEN + 1]; | 167 | char name[ATH5K_LED_MAX_NAME_LEN + 1]; |
170 | const struct pci_device_id *match; | 168 | const struct pci_device_id *match; |
171 | 169 | ||
172 | if (!ah->pdev) | 170 | if (!ah->pdev) |
173 | return 0; | 171 | return 0; |
174 | 172 | ||
175 | #ifdef CONFIG_ATHEROS_AR231X | ||
176 | match = NULL; | ||
177 | #else | ||
178 | match = pci_match_id(&ath5k_led_devices[0], pdev); | 173 | match = pci_match_id(&ath5k_led_devices[0], pdev); |
179 | #endif | ||
180 | if (match) { | 174 | if (match) { |
181 | __set_bit(ATH_STAT_LEDSOFT, ah->status); | 175 | __set_bit(ATH_STAT_LEDSOFT, ah->status); |
182 | ah->led_pin = ATH_PIN(match->driver_data); | 176 | ah->led_pin = ATH_PIN(match->driver_data); |