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, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/led.c b/drivers/net/wireless/ath/ath5k/led.c index 0beb7e7d6075..ca4b7ccd697f 100644 --- a/drivers/net/wireless/ath/ath5k/led.c +++ b/drivers/net/wireless/ath/ath5k/led.c | |||
@@ -163,14 +163,20 @@ 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_ATH5K_AHB | ||
166 | struct pci_dev *pdev = ah->pdev; | 167 | struct pci_dev *pdev = ah->pdev; |
168 | #endif | ||
167 | char name[ATH5K_LED_MAX_NAME_LEN + 1]; | 169 | char name[ATH5K_LED_MAX_NAME_LEN + 1]; |
168 | const struct pci_device_id *match; | 170 | const struct pci_device_id *match; |
169 | 171 | ||
170 | if (!ah->pdev) | 172 | if (!ah->pdev) |
171 | return 0; | 173 | return 0; |
172 | 174 | ||
175 | #ifdef CONFIG_ATH5K_AHB | ||
176 | match = NULL; | ||
177 | #else | ||
173 | match = pci_match_id(&ath5k_led_devices[0], pdev); | 178 | match = pci_match_id(&ath5k_led_devices[0], pdev); |
179 | #endif | ||
174 | if (match) { | 180 | if (match) { |
175 | __set_bit(ATH_STAT_LEDSOFT, ah->status); | 181 | __set_bit(ATH_STAT_LEDSOFT, ah->status); |
176 | ah->led_pin = ATH_PIN(match->driver_data); | 182 | ah->led_pin = ATH_PIN(match->driver_data); |