summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/3945.c
diff options
context:
space:
mode:
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>2011-09-06 19:11:35 -0500
committerStanislaw Gruszka <sgruszka@redhat.com>2011-11-16 12:55:12 +0100
commit9b5e2f463ac6f53789bd5ce43d2bb4b4c01e8607 (patch)
tree0af5258b4c9464212bd582cef773c5e6f43233ce /drivers/net/wireless/iwlegacy/3945.c
parente3a2c775336641663b1c38dfa7dd8a1c1210ae23 (diff)
downloadblackbird-op-linux-9b5e2f463ac6f53789bd5ce43d2bb4b4c01e8607.tar.gz
blackbird-op-linux-9b5e2f463ac6f53789bd5ce43d2bb4b4c01e8607.zip
iwlegacy: debugfs_ops should depend on CONFIG_IWLEGACY_DEBUGFS
Only setup structs related to debugfs_ops when CONFIG_IWLEGACY_DEBUGFS is set. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/3945.c')
-rw-r--r--drivers/net/wireless/iwlegacy/3945.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945.c b/drivers/net/wireless/iwlegacy/3945.c
index 7367dbb75ec6..863664f9ba8b 100644
--- a/drivers/net/wireless/iwlegacy/3945.c
+++ b/drivers/net/wireless/iwlegacy/3945.c
@@ -2671,11 +2671,13 @@ static struct il_lib_ops il3945_lib = {
.send_tx_power = il3945_send_tx_power,
.is_valid_rtc_data_addr = il3945_hw_valid_rtc_data_addr,
+#ifdef CONFIG_IWLEGACY_DEBUGFS
.debugfs_ops = {
.rx_stats_read = il3945_ucode_rx_stats_read,
.tx_stats_read = il3945_ucode_tx_stats_read,
.general_stats_read = il3945_ucode_general_stats_read,
},
+#endif
};
static const struct il_legacy_ops il3945_legacy_ops = {
OpenPOWER on IntegriCloud