projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab2e2fc
)
ath9k: Only remove spectral scan relay file when it was created
author
Sven Eckelmann
<sven@narfation.org>
Thu, 31 Jan 2013 14:56:56 +0000
(15:56 +0100)
committer
John W. Linville
<linville@tuxdriver.com>
Fri, 1 Feb 2013 19:27:24 +0000
(14:27 -0500)
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>
drivers/net/wireless/ath/ath9k/init.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/init.c
b/drivers/net/wireless/ath/ath9k/init.c
index c7d116c2c615d6166d91f147b0120010be4b1c1b..af932c9444def08a14e8826948936ba33e73342c 100644
(file)
--- 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;
}