#ifdef CONFIG_ATH_DEBUG
static ssize_t read_file_debug(struct file *file, char __user *user_buf,
-@@ -908,6 +922,40 @@ static const struct file_operations fops
+@@ -941,6 +955,40 @@ static const struct file_operations fops
.llseek = default_llseek,/* read accesses f_pos */
};
int ath9k_init_debug(struct ath_hw *ah)
{
struct ath_common *common = ath9k_hw_common(ah);
-@@ -972,6 +1020,11 @@ int ath9k_init_debug(struct ath_hw *ah)
+@@ -1005,6 +1053,11 @@ int ath9k_init_debug(struct ath_hw *ah)
goto err;
sc->debug.regidx = 0;
return 0;
err:
ath9k_exit_debug(ah);
-@@ -983,6 +1036,7 @@ void ath9k_exit_debug(struct ath_hw *ah)
+@@ -1016,6 +1069,7 @@ void ath9k_exit_debug(struct ath_hw *ah)
struct ath_common *common = ath9k_hw_common(ah);
struct ath_softc *sc = (struct ath_softc *) common->priv;