led.c (0e5d3ab532dd6bd43406d91b1dacb391973f831f) led.c (164a974889c03cbc6559923b8c1da8762904c560)
1/*
2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
3 * Copyright (c) 2004-2005 Atheros Communications, Inc.
4 * Copyright (c) 2007 Jiri Slaby <jirislaby@gmail.com>
5 * Copyright (c) 2009 Bob Copeland <me@bobcopeland.com>
6 *
7 * All rights reserved.
8 *

--- 149 unchanged lines hidden (view full) ---

158 ath5k_unregister_led(&ah->rx_led);
159 ath5k_unregister_led(&ah->tx_led);
160}
161
162int ath5k_init_leds(struct ath5k_hw *ah)
163{
164 int ret = 0;
165 struct ieee80211_hw *hw = ah->hw;
1/*
2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
3 * Copyright (c) 2004-2005 Atheros Communications, Inc.
4 * Copyright (c) 2007 Jiri Slaby <jirislaby@gmail.com>
5 * Copyright (c) 2009 Bob Copeland <me@bobcopeland.com>
6 *
7 * All rights reserved.
8 *

--- 149 unchanged lines hidden (view full) ---

158 ath5k_unregister_led(&ah->rx_led);
159 ath5k_unregister_led(&ah->tx_led);
160}
161
162int ath5k_init_leds(struct ath5k_hw *ah)
163{
164 int ret = 0;
165 struct ieee80211_hw *hw = ah->hw;
166#ifndef CONFIG_ATHEROS_AR231X
166#ifndef CONFIG_ATH5K_AHB
167 struct pci_dev *pdev = ah->pdev;
168#endif
169 char name[ATH5K_LED_MAX_NAME_LEN + 1];
170 const struct pci_device_id *match;
171
172 if (!ah->pdev)
173 return 0;
174
167 struct pci_dev *pdev = ah->pdev;
168#endif
169 char name[ATH5K_LED_MAX_NAME_LEN + 1];
170 const struct pci_device_id *match;
171
172 if (!ah->pdev)
173 return 0;
174
175#ifdef CONFIG_ATHEROS_AR231X
175#ifdef CONFIG_ATH5K_AHB
176 match = NULL;
177#else
178 match = pci_match_id(&ath5k_led_devices[0], pdev);
179#endif
180 if (match) {
181 __set_bit(ATH_STAT_LEDSOFT, ah->status);
182 ah->led_pin = ATH_PIN(match->driver_data);
183 ah->led_on = ATH_POLARITY(match->driver_data);

--- 20 unchanged lines hidden ---
176 match = NULL;
177#else
178 match = pci_match_id(&ath5k_led_devices[0], pdev);
179#endif
180 if (match) {
181 __set_bit(ATH_STAT_LEDSOFT, ah->status);
182 ah->led_pin = ATH_PIN(match->driver_data);
183 ah->led_on = ATH_POLARITY(match->driver_data);

--- 20 unchanged lines hidden ---