summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2013-01-31 18:56:56 +0400
committerJohn W. Linville <linville@tuxdriver.com>2013-02-01 23:27:24 +0400
commit00b54182344ea2ca3e570fd8d9803f8e7dc98fb4 (patch)
tree80c395c3218c9bac4a6f74bf2ead6cd47830034a /drivers/net/wireless/ath/ath9k
parentab2e2fc8909b3ea6b5adf813b23cd76a4a33fbd8 (diff)
downloadlinux-00b54182344ea2ca3e570fd8d9803f8e7dc98fb4.tar.xz
ath9k: Only remove spectral scan relay file when it was created
The relay file depends on relayfs. Trying to close this file without having ATH9K_DEBUGFS (and therefore RELAY) activated causes build failures. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index c7d116c2c615..af932c9444de 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -922,7 +922,7 @@ static void ath9k_deinit_softc(struct ath_softc *sc)
ath9k_eeprom_release(sc);
- if (sc->rfs_chan_spec_scan) {
+ if (config_enabled(CONFIG_ATH9K_DEBUGFS) && sc->rfs_chan_spec_scan) {
relay_close(sc->rfs_chan_spec_scan);
sc->rfs_chan_spec_scan = NULL;
}