diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2005-12-20 15:21:24 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-12-20 10:31:33 -0800 |
commit | 9e28393998d3d0733097306762f6d1c083fc92c6 (patch) | |
tree | 9cc87f8c1f936164fd570c58126ef761839f74e3 | |
parent | 7e8702334841b6da4b8f564dc1771ca17c59a621 (diff) | |
download | kernel_samsung_smdk4412-9e28393998d3d0733097306762f6d1c083fc92c6.zip kernel_samsung_smdk4412-9e28393998d3d0733097306762f6d1c083fc92c6.tar.gz kernel_samsung_smdk4412-9e28393998d3d0733097306762f6d1c083fc92c6.tar.bz2 |
[PATCH] kernel/params.c: fix sysfs access with CONFIG_MODULES=n
All the work was done to setup the file and maintain the file handles but
the access functions were zeroed out due to the #ifdef. Removing the
#ifdef allows full access to all the parameters when CONFIG_MODULES=n.
akpm: put it back again, but use CONFIG_SYSFS instead.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | kernel/params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c index 47ba695..c76ad25 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -619,7 +619,7 @@ static void __init param_sysfs_builtin(void) /* module-related sysfs stuff */ -#ifdef CONFIG_MODULES +#ifdef CONFIG_SYSFS #define to_module_attr(n) container_of(n, struct module_attribute, attr); #define to_module_kobject(n) container_of(n, struct module_kobject, kobj); |