Skip to content

Commit

Permalink
ath9k: always compile ath_radio_{en,dis}able
Browse files Browse the repository at this point in the history
ath_radio_{en,dis}able is only compiled if RFKILL is enabled, but it is
required by the 'ath9k_wiphy_select' function.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Gabor Juhos authored and John W. Linville committed Mar 16, 2009
1 parent 5210311 commit 5077fd3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,12 +1084,6 @@ static void ath_init_leds(struct ath_softc *sc)
ath_deinit_leds(sc);
}

#if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE)

/*******************/
/* Rfkill */
/*******************/

void ath_radio_enable(struct ath_softc *sc)
{
struct ath_hw *ah = sc->sc_ah;
Expand Down Expand Up @@ -1166,6 +1160,12 @@ void ath_radio_disable(struct ath_softc *sc)
ath9k_ps_restore(sc);
}

#if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE)

/*******************/
/* Rfkill */
/*******************/

static bool ath_is_rfkill_set(struct ath_softc *sc)
{
struct ath_hw *ah = sc->sc_ah;
Expand Down

0 comments on commit 5077fd3

Please sign in to comment.