I think you should just do this (untested): --- wireless-testing.orig/drivers/net/wireless/ath/ath5k/debug.c 2010-10-11 20:44:26.000000000 +0200 +++ wireless-testing/drivers/net/wireless/ath/ath5k/debug.c 2010-10-11 20:45:26.000000000 +0200 @@ -71,8 +71,6 @@ module_param_named(debug, ath5k_debug, u #include "reg.h" #include "ani.h" -static struct dentry *ath5k_global_debugfs; - static int ath5k_debugfs_open(struct inode *inode, struct file *file) { file->private_data = inode->i_private; @@ -884,7 +882,6 @@ static const struct file_operations fops void ath5k_debug_init(void) { - ath5k_global_debugfs = debugfs_create_dir("ath5k", NULL); } void @@ -892,8 +889,8 @@ ath5k_debug_init_device(struct ath5k_sof { sc->debug.level = ath5k_debug; - sc->debug.debugfs_phydir = debugfs_create_dir(wiphy_name(sc->hw->wiphy), - ath5k_global_debugfs); + sc->debug.debugfs_phydir = debugfs_create_dir("ath5k", + sc->hw->wiphy->debugfsdir); sc->debug.debugfs_debug = debugfs_create_file("debug", S_IWUSR | S_IRUSR, @@ -936,7 +933,6 @@ ath5k_debug_init_device(struct ath5k_sof void ath5k_debug_finish(void) { - debugfs_remove(ath5k_global_debugfs); } void -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html