ath9k: Build RFKILL feature even when RFKILL subsystem is a MODULE
[pandora-kernel.git] / drivers / net / wireless / ath9k / core.c
index 5f5184a..3e94dab 100644 (file)
@@ -705,7 +705,7 @@ void ath_stop(struct ath_softc *sc)
        } else
                sc->sc_rxlink = NULL;
 
-#ifdef CONFIG_RFKILL
+#if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE)
        if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT)
                cancel_delayed_work_sync(&sc->rf_kill.rfkill_poll);
 #endif