diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common-debug.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/common-debug.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common-debug.c b/drivers/net/wireless/ath/ath9k/common-debug.c index 84afcf78151f..239429f10378 100644 --- a/drivers/net/wireless/ath/ath9k/common-debug.c +++ b/drivers/net/wireless/ath/ath9k/common-debug.c | |||
@@ -47,7 +47,7 @@ static const struct file_operations fops_modal_eeprom = { | |||
47 | void ath9k_cmn_debug_modal_eeprom(struct dentry *debugfs_phy, | 47 | void ath9k_cmn_debug_modal_eeprom(struct dentry *debugfs_phy, |
48 | struct ath_hw *ah) | 48 | struct ath_hw *ah) |
49 | { | 49 | { |
50 | debugfs_create_file("modal_eeprom", S_IRUSR, debugfs_phy, ah, | 50 | debugfs_create_file("modal_eeprom", 0400, debugfs_phy, ah, |
51 | &fops_modal_eeprom); | 51 | &fops_modal_eeprom); |
52 | } | 52 | } |
53 | EXPORT_SYMBOL(ath9k_cmn_debug_modal_eeprom); | 53 | EXPORT_SYMBOL(ath9k_cmn_debug_modal_eeprom); |
@@ -82,7 +82,7 @@ static const struct file_operations fops_base_eeprom = { | |||
82 | void ath9k_cmn_debug_base_eeprom(struct dentry *debugfs_phy, | 82 | void ath9k_cmn_debug_base_eeprom(struct dentry *debugfs_phy, |
83 | struct ath_hw *ah) | 83 | struct ath_hw *ah) |
84 | { | 84 | { |
85 | debugfs_create_file("base_eeprom", S_IRUSR, debugfs_phy, ah, | 85 | debugfs_create_file("base_eeprom", 0400, debugfs_phy, ah, |
86 | &fops_base_eeprom); | 86 | &fops_base_eeprom); |
87 | } | 87 | } |
88 | EXPORT_SYMBOL(ath9k_cmn_debug_base_eeprom); | 88 | EXPORT_SYMBOL(ath9k_cmn_debug_base_eeprom); |
@@ -178,8 +178,7 @@ static const struct file_operations fops_recv = { | |||
178 | void ath9k_cmn_debug_recv(struct dentry *debugfs_phy, | 178 | void ath9k_cmn_debug_recv(struct dentry *debugfs_phy, |
179 | struct ath_rx_stats *rxstats) | 179 | struct ath_rx_stats *rxstats) |
180 | { | 180 | { |
181 | debugfs_create_file("recv", S_IRUSR, debugfs_phy, rxstats, | 181 | debugfs_create_file("recv", 0400, debugfs_phy, rxstats, &fops_recv); |
182 | &fops_recv); | ||
183 | } | 182 | } |
184 | EXPORT_SYMBOL(ath9k_cmn_debug_recv); | 183 | EXPORT_SYMBOL(ath9k_cmn_debug_recv); |
185 | 184 | ||
@@ -255,7 +254,7 @@ static const struct file_operations fops_phy_err = { | |||
255 | void ath9k_cmn_debug_phy_err(struct dentry *debugfs_phy, | 254 | void ath9k_cmn_debug_phy_err(struct dentry *debugfs_phy, |
256 | struct ath_rx_stats *rxstats) | 255 | struct ath_rx_stats *rxstats) |
257 | { | 256 | { |
258 | debugfs_create_file("phy_err", S_IRUSR, debugfs_phy, rxstats, | 257 | debugfs_create_file("phy_err", 0400, debugfs_phy, rxstats, |
259 | &fops_phy_err); | 258 | &fops_phy_err); |
260 | } | 259 | } |
261 | EXPORT_SYMBOL(ath9k_cmn_debug_phy_err); | 260 | EXPORT_SYMBOL(ath9k_cmn_debug_phy_err); |