diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-03-21 02:22:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-03-21 02:22:12 +0000 |
commit | 66d1f54cc0239e10a40ce8a38142203454a19c6a (patch) | |
tree | da9e572c907486b1cd6b25c905dca681bd24b651 /package/mac80211/patches/500-ath9k_eeprom_debugfs.patch | |
parent | 0ce110c34e4265fda82b45ef48fdf3509608233b (diff) | |
download | upstream-66d1f54cc0239e10a40ce8a38142203454a19c6a.tar.gz upstream-66d1f54cc0239e10a40ce8a38142203454a19c6a.tar.bz2 upstream-66d1f54cc0239e10a40ce8a38142203454a19c6a.zip |
ath9k: add some minor debugfs cleanups
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26247 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/500-ath9k_eeprom_debugfs.patch')
-rw-r--r-- | package/mac80211/patches/500-ath9k_eeprom_debugfs.patch | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/package/mac80211/patches/500-ath9k_eeprom_debugfs.patch b/package/mac80211/patches/500-ath9k_eeprom_debugfs.patch index 0bb7082ef5..632ae96a64 100644 --- a/package/mac80211/patches/500-ath9k_eeprom_debugfs.patch +++ b/package/mac80211/patches/500-ath9k_eeprom_debugfs.patch @@ -54,13 +54,12 @@ int ath9k_init_debug(struct ath_hw *ah) { struct ath_common *common = ath9k_hw_common(ah); -@@ -1151,6 +1198,10 @@ int ath9k_init_debug(struct ath_hw *ah) +@@ -1151,6 +1198,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; |