wl1271: move wl12xx debugfs directory to under wiphy's debugfs
Use per-device debugfs path, so multiple devices won't collide. in order to use wl->hw->wiphy->debugfsdir, we have to move the debugfs creation from wl1271_debugfs_init() to wl1271_register_hw(). Reported-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
This commit is contained in:
committed by
Luciano Coelho
parent
7cb2cea9f0
commit
d60080ae06
@@ -423,7 +423,8 @@ int wl1271_debugfs_init(struct wl1271 *wl)
|
||||
{
|
||||
int ret;
|
||||
|
||||
wl->rootdir = debugfs_create_dir(KBUILD_MODNAME, NULL);
|
||||
wl->rootdir = debugfs_create_dir(KBUILD_MODNAME,
|
||||
wl->hw->wiphy->debugfsdir);
|
||||
|
||||
if (IS_ERR(wl->rootdir)) {
|
||||
ret = PTR_ERR(wl->rootdir);
|
||||
|
Reference in New Issue
Block a user