X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=package%2Fmac80211%2Fpatches%2F500-ath9k_eeprom_debugfs.patch;h=742088cdd857f8986fb2893d3a4b86ae51cbe315;hb=c0cb4f1dd031991a5df442663c831e4116e37035;hp=700cf70114d6d63554893a123eee36a17ae8579f;hpb=dc205de66885d98a4f5d9eb546d405d602d87884;p=openwrt-10.03%2F.git diff --git a/package/mac80211/patches/500-ath9k_eeprom_debugfs.patch b/package/mac80211/patches/500-ath9k_eeprom_debugfs.patch index 700cf7011..742088cdd 100644 --- a/package/mac80211/patches/500-ath9k_eeprom_debugfs.patch +++ b/package/mac80211/patches/500-ath9k_eeprom_debugfs.patch @@ -1,6 +1,6 @@ --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c -@@ -1027,6 +1027,53 @@ static const struct file_operations fops +@@ -1272,6 +1272,53 @@ static const struct file_operations fops .llseek = default_llseek, }; @@ -54,14 +54,13 @@ int ath9k_init_debug(struct ath_hw *ah) { struct ath_common *common = ath9k_hw_common(ah); -@@ -1097,6 +1144,10 @@ int ath9k_init_debug(struct ath_hw *ah) +@@ -1328,6 +1375,9 @@ int ath9k_init_debug(struct ath_hw *ah) debugfs_create_u32("gpio_val", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy, &sc->sc_ah->gpio_val); -+ if (!debugfs_create_file("eeprom", S_IRUSR, -+ sc->debug.debugfs_phy, sc, &fops_eeprom)) -+ goto err; ++ debugfs_create_file("eeprom", S_IRUSR, sc->debug.debugfs_phy, sc, ++ &fops_eeprom); + sc->debug.regidx = 0; return 0; - err: + }