From: Holger Schurig Date: Fri, 25 May 2007 03:47:34 +0000 (-0400) Subject: [PATCH] libertas: fix removal of all debugfs files X-Git-Tag: v2.6.22-rc5~44^2~2^2~68 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b7db95602d0eb5339c7b7a9c7beff4b146bdeec;p=linux-2.6 [PATCH] libertas: fix removal of all debugfs files rmmod did not remove /sys/kernel/debug/libertas_wireless/eth1/ subscribed_events/high_snr. After I fixed this, I noticed that it also didn't remove /sys/kernel/debug/libertas_wireless/eth1 as well. Signed-off-by: Holger Schurig Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index 7d7bc5e86a..1f06b0752d 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c @@ -1760,7 +1760,7 @@ void libertas_debugfs_remove_one(wlan_private *priv) debugfs_remove(priv->regs_dir); - for(i=0; idebugfs_events_files[i]); debugfs_remove(priv->events_dir); @@ -1769,6 +1769,7 @@ void libertas_debugfs_remove_one(wlan_private *priv) #endif for(i=0; idebugfs_files[i]); + debugfs_remove(priv->debugfs_dir); } /* debug entry */