diff options
author | Pavel Roskin <proski@gnu.org> | 2011-07-07 18:13:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-08 11:44:30 -0400 |
commit | 25380d8068dbe983c929f5d10ae18647082511d8 (patch) | |
tree | d31b3007107084020201dcbba3e429228be0082d /drivers/net/wireless | |
parent | ef82763d8dad6b2312ce388fd9af23dd2b4626d4 (diff) |
ath5k: use DEFINE_PCI_DEVICE_TABLE in led.c, mark users with __devinit
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/led.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index a6623ddfdefe..21d10dc34011 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -2357,7 +2357,7 @@ ath5k_tx_complete_poll_work(struct work_struct *work) | |||
2357 | * Initialization routines * | 2357 | * Initialization routines * |
2358 | \*************************/ | 2358 | \*************************/ |
2359 | 2359 | ||
2360 | int | 2360 | int __devinit |
2361 | ath5k_init_softc(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops) | 2361 | ath5k_init_softc(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops) |
2362 | { | 2362 | { |
2363 | struct ieee80211_hw *hw = sc->hw; | 2363 | struct ieee80211_hw *hw = sc->hw; |
@@ -2771,7 +2771,7 @@ static void ath5k_reset_work(struct work_struct *work) | |||
2771 | mutex_unlock(&sc->lock); | 2771 | mutex_unlock(&sc->lock); |
2772 | } | 2772 | } |
2773 | 2773 | ||
2774 | static int | 2774 | static int __devinit |
2775 | ath5k_init(struct ieee80211_hw *hw) | 2775 | ath5k_init(struct ieee80211_hw *hw) |
2776 | { | 2776 | { |
2777 | 2777 | ||
diff --git a/drivers/net/wireless/ath/ath5k/led.c b/drivers/net/wireless/ath/ath5k/led.c index 576edf2965dc..56f1d95abb01 100644 --- a/drivers/net/wireless/ath/ath5k/led.c +++ b/drivers/net/wireless/ath/ath5k/led.c | |||
@@ -52,7 +52,7 @@ | |||
52 | #define ATH_POLARITY(data) ((data) & 0xff) | 52 | #define ATH_POLARITY(data) ((data) & 0xff) |
53 | 53 | ||
54 | /* Devices we match on for LED config info (typically laptops) */ | 54 | /* Devices we match on for LED config info (typically laptops) */ |
55 | static const struct pci_device_id ath5k_led_devices[] = { | 55 | static DEFINE_PCI_DEVICE_TABLE(ath5k_led_devices) = { |
56 | /* AR5211 */ | 56 | /* AR5211 */ |
57 | { PCI_VDEVICE(ATHEROS, PCI_DEVICE_ID_ATHEROS_AR5211), ATH_LED(0, 0) }, | 57 | { PCI_VDEVICE(ATHEROS, PCI_DEVICE_ID_ATHEROS_AR5211), ATH_LED(0, 0) }, |
58 | /* HP Compaq nc6xx, nc4000, nx6000 */ | 58 | /* HP Compaq nc6xx, nc4000, nx6000 */ |
@@ -157,7 +157,7 @@ void ath5k_unregister_leds(struct ath5k_softc *sc) | |||
157 | ath5k_unregister_led(&sc->tx_led); | 157 | ath5k_unregister_led(&sc->tx_led); |
158 | } | 158 | } |
159 | 159 | ||
160 | int ath5k_init_leds(struct ath5k_softc *sc) | 160 | int __devinit ath5k_init_leds(struct ath5k_softc *sc) |
161 | { | 161 | { |
162 | int ret = 0; | 162 | int ret = 0; |
163 | struct ieee80211_hw *hw = sc->hw; | 163 | struct ieee80211_hw *hw = sc->hw; |