diff options
Diffstat (limited to 'drivers/net/wireless/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index 7273e9f5c6d..359795d8b48 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -2581,8 +2581,6 @@ ath5k_init_leds(struct ath5k_softc *sc) | |||
2581 | struct pci_dev *pdev = sc->pdev; | 2581 | struct pci_dev *pdev = sc->pdev; |
2582 | char name[ATH5K_LED_MAX_NAME_LEN + 1]; | 2582 | char name[ATH5K_LED_MAX_NAME_LEN + 1]; |
2583 | 2583 | ||
2584 | sc->led_on = 0; /* active low */ | ||
2585 | |||
2586 | /* | 2584 | /* |
2587 | * Auto-enable soft led processing for IBM cards and for | 2585 | * Auto-enable soft led processing for IBM cards and for |
2588 | * 5211 minipci cards. | 2586 | * 5211 minipci cards. |
@@ -2591,11 +2589,13 @@ ath5k_init_leds(struct ath5k_softc *sc) | |||
2591 | pdev->device == PCI_DEVICE_ID_ATHEROS_AR5211) { | 2589 | pdev->device == PCI_DEVICE_ID_ATHEROS_AR5211) { |
2592 | __set_bit(ATH_STAT_LEDSOFT, sc->status); | 2590 | __set_bit(ATH_STAT_LEDSOFT, sc->status); |
2593 | sc->led_pin = 0; | 2591 | sc->led_pin = 0; |
2592 | sc->led_on = 0; /* active low */ | ||
2594 | } | 2593 | } |
2595 | /* Enable softled on PIN1 on HP Compaq nc6xx, nc4000 & nx5000 laptops */ | 2594 | /* Enable softled on PIN1 on HP Compaq nc6xx, nc4000 & nx5000 laptops */ |
2596 | if (pdev->subsystem_vendor == PCI_VENDOR_ID_COMPAQ) { | 2595 | if (pdev->subsystem_vendor == PCI_VENDOR_ID_COMPAQ) { |
2597 | __set_bit(ATH_STAT_LEDSOFT, sc->status); | 2596 | __set_bit(ATH_STAT_LEDSOFT, sc->status); |
2598 | sc->led_pin = 1; | 2597 | sc->led_pin = 1; |
2598 | sc->led_on = 1; /* active high */ | ||
2599 | } | 2599 | } |
2600 | if (!test_bit(ATH_STAT_LEDSOFT, sc->status)) | 2600 | if (!test_bit(ATH_STAT_LEDSOFT, sc->status)) |
2601 | goto out; | 2601 | goto out; |