mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
ef82763d8d
commit
25380d8068
|
@ -2357,7 +2357,7 @@ ath5k_tx_complete_poll_work(struct work_struct *work)
|
||||||
* Initialization routines *
|
* Initialization routines *
|
||||||
\*************************/
|
\*************************/
|
||||||
|
|
||||||
int
|
int __devinit
|
||||||
ath5k_init_softc(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops)
|
ath5k_init_softc(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops)
|
||||||
{
|
{
|
||||||
struct ieee80211_hw *hw = sc->hw;
|
struct ieee80211_hw *hw = sc->hw;
|
||||||
|
@ -2771,7 +2771,7 @@ static void ath5k_reset_work(struct work_struct *work)
|
||||||
mutex_unlock(&sc->lock);
|
mutex_unlock(&sc->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int __devinit
|
||||||
ath5k_init(struct ieee80211_hw *hw)
|
ath5k_init(struct ieee80211_hw *hw)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
#define ATH_POLARITY(data) ((data) & 0xff)
|
#define ATH_POLARITY(data) ((data) & 0xff)
|
||||||
|
|
||||||
/* Devices we match on for LED config info (typically laptops) */
|
/* Devices we match on for LED config info (typically laptops) */
|
||||||
static const struct pci_device_id ath5k_led_devices[] = {
|
static DEFINE_PCI_DEVICE_TABLE(ath5k_led_devices) = {
|
||||||
/* AR5211 */
|
/* AR5211 */
|
||||||
{ PCI_VDEVICE(ATHEROS, PCI_DEVICE_ID_ATHEROS_AR5211), ATH_LED(0, 0) },
|
{ PCI_VDEVICE(ATHEROS, PCI_DEVICE_ID_ATHEROS_AR5211), ATH_LED(0, 0) },
|
||||||
/* HP Compaq nc6xx, nc4000, nx6000 */
|
/* HP Compaq nc6xx, nc4000, nx6000 */
|
||||||
|
@ -157,7 +157,7 @@ void ath5k_unregister_leds(struct ath5k_softc *sc)
|
||||||
ath5k_unregister_led(&sc->tx_led);
|
ath5k_unregister_led(&sc->tx_led);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ath5k_init_leds(struct ath5k_softc *sc)
|
int __devinit ath5k_init_leds(struct ath5k_softc *sc)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct ieee80211_hw *hw = sc->hw;
|
struct ieee80211_hw *hw = sc->hw;
|
||||||
|
|
Loading…
Reference in New Issue