Commit 0b7db956 authored by Holger Schurig's avatar Holger Schurig Committed by John W. Linville

[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: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 604ba491
...@@ -1760,7 +1760,7 @@ void libertas_debugfs_remove_one(wlan_private *priv) ...@@ -1760,7 +1760,7 @@ void libertas_debugfs_remove_one(wlan_private *priv)
debugfs_remove(priv->regs_dir); 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->debugfs_events_files[i]);
debugfs_remove(priv->events_dir); debugfs_remove(priv->events_dir);
...@@ -1769,6 +1769,7 @@ void libertas_debugfs_remove_one(wlan_private *priv) ...@@ -1769,6 +1769,7 @@ void libertas_debugfs_remove_one(wlan_private *priv)
#endif #endif
for(i=0; i<ARRAY_SIZE(debugfs_files); i++) for(i=0; i<ARRAY_SIZE(debugfs_files); i++)
debugfs_remove(priv->debugfs_files[i]); debugfs_remove(priv->debugfs_files[i]);
debugfs_remove(priv->debugfs_dir);
} }
/* debug entry */ /* debug entry */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment