From 9217fded49867f9b0115c29ffcafd1d2accd6dc1 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 21 Mar 2011 02:22:12 +0000 Subject: ath9k: add some minor debugfs cleanups git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26247 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mac80211/patches/500-ath9k_eeprom_debugfs.patch | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'package/mac80211/patches/500-ath9k_eeprom_debugfs.patch') diff --git a/package/mac80211/patches/500-ath9k_eeprom_debugfs.patch b/package/mac80211/patches/500-ath9k_eeprom_debugfs.patch index 0bb7082ef..632ae96a6 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; -- cgit v1.2.3