Skip to content

Commit

Permalink
[PATCH] libertas: fix removal of all debugfs files
Browse files Browse the repository at this point in the history
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 <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Holger Schurig authored and John W. Linville committed Jun 11, 2007
1 parent 604ba49 commit 0b7db95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/libertas/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ void libertas_debugfs_remove_one(wlan_private *priv)

debugfs_remove(priv->regs_dir);

for(i=0; i<ARRAY_SIZE(debugfs_files); i++)
for(i=0; i<ARRAY_SIZE(debugfs_events_files); i++)
debugfs_remove(priv->debugfs_events_files[i]);

debugfs_remove(priv->events_dir);
Expand All @@ -1769,6 +1769,7 @@ void libertas_debugfs_remove_one(wlan_private *priv)
#endif
for(i=0; i<ARRAY_SIZE(debugfs_files); i++)
debugfs_remove(priv->debugfs_files[i]);
debugfs_remove(priv->debugfs_dir);
}

/* debug entry */
Expand Down

0 comments on commit 0b7db95

Please sign in to comment.