提交 00b54182 编写于 作者: S Sven Eckelmann 提交者: John W. Linville

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: NSven Eckelmann <sven@narfation.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 ab2e2fc8
...@@ -922,7 +922,7 @@ static void ath9k_deinit_softc(struct ath_softc *sc) ...@@ -922,7 +922,7 @@ static void ath9k_deinit_softc(struct ath_softc *sc)
ath9k_eeprom_release(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); relay_close(sc->rfs_chan_spec_scan);
sc->rfs_chan_spec_scan = NULL; sc->rfs_chan_spec_scan = NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册