cfg80211/mac80211: use debugfs_remove_recursive
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 27 Oct 2009 11:59:03 +0000 (12:59 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Oct 2009 20:49:18 +0000 (16:49 -0400)
commit7bcfaf2f431c09c51fe776fc06638b25d3b421c5
tree27f767335566826f11f0134b97ee76b58d9bcf90
parent2c0d6100da3ee9b0f0cc46add9bb8a8161299a92
cfg80211/mac80211: use debugfs_remove_recursive

We can save a lot of code and pointers in the structs
by using debugfs_remove_recursive().

First, change cfg80211 to use debugfs_remove_recursive()
so that drivers do not need to clean up any files they
added to the per-wiphy debugfs (if and only if they are
ok to be accessed until after wiphy_unregister!).

Then also make mac80211 use debugfs_remove_recursive()
where necessary -- it need not remove per-wiphy files
as cfg80211 now removes those, but netdev etc. files
still need to be handled but can now be removed without
needing struct dentry pointers to all of them.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
14 files changed:
net/mac80211/debugfs.c
net/mac80211/debugfs.h
net/mac80211/debugfs_key.c
net/mac80211/debugfs_netdev.c
net/mac80211/debugfs_sta.c
net/mac80211/ieee80211_i.h
net/mac80211/key.h
net/mac80211/main.c
net/mac80211/rate.c
net/mac80211/sta_info.h
net/wireless/core.c
net/wireless/core.h
net/wireless/debugfs.c
net/wireless/debugfs.h