wl12xx: change debug_level module param sysfs permissions
authorGuy Eilam <guy@wizery.com>
Wed, 12 Jan 2011 09:33:29 +0000 (10:33 +0100)
committerLuciano Coelho <coelho@ti.com>
Mon, 24 Jan 2011 20:11:52 +0000 (22:11 +0200)
changed the visibility of the debug_level module parameter
in the filesystem to be readable and writable to the root user.
It is now accessible under /sys/module/wl12xx/parameters

removed the debug_level debugfs file that was created under
/sys/kernel/debug/...

Signed-off-by: Guy Eilam <guy@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/debugfs.c
drivers/net/wireless/wl12xx/main.c

index 36e7ec1e0c3ba350ba2e86cb6156e2879c5f77f8..dc3ca0031817699d952bb3135dc8823d5b911662 100644 (file)
@@ -402,11 +402,6 @@ static int wl1271_debugfs_add_files(struct wl1271 *wl,
 
        DEBUGFS_ADD(gpio_power, rootdir);
 
-       entry = debugfs_create_x32("debug_level", 0600, rootdir,
-                                  &wl12xx_debug_level);
-       if (!entry || IS_ERR(entry))
-               goto err;
-
        return 0;
 
 err:
index 2192e4cf62f459496d7e40df9d680b0094f842d7..907655504983dc9a3c800e36063066d641d8a449 100644 (file)
@@ -3334,9 +3334,9 @@ int wl1271_free_hw(struct wl1271 *wl)
 }
 EXPORT_SYMBOL_GPL(wl1271_free_hw);
 
-u32 wl12xx_debug_level;
+u32 wl12xx_debug_level = DEBUG_NONE;
 EXPORT_SYMBOL_GPL(wl12xx_debug_level);
-module_param_named(debug_level, wl12xx_debug_level, uint, DEBUG_NONE);
+module_param_named(debug_level, wl12xx_debug_level, uint, S_IRUSR | S_IWUSR);
 MODULE_PARM_DESC(debug_level, "wl12xx debugging level");
 
 MODULE_LICENSE("GPL");