Skip to content

Commit

Permalink
ath9k: Only remove spectral scan relay file when it was created
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sven Eckelmann authored and John W. Linville committed Feb 1, 2013
1 parent ab2e2fc commit 00b5418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 00b5418

Please sign in to comment.