diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-01-15 14:50:02 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 13:37:12 -0500 |
commit | fe480a2675ed236af396597d9f05245c7bbd0149 (patch) | |
tree | 1320b12250fd7ff8b642cc205587c7d0cbf6d9bb /kernel/params.c | |
parent | f30c53a873d0d227493197064b8886af2d57bbd6 (diff) |
Modules: only add drivers/ direcory if needed
This changes the module core to only create the drivers/ directory if we
are going to put something in it.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/params.c')
-rw-r--r-- | kernel/params.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c index 737b7c5e93aa..cbaac85942d5 100644 --- a/kernel/params.c +++ b/kernel/params.c | |||
@@ -565,7 +565,6 @@ static void __init kernel_param_sysfs_setup(const char *name, | |||
565 | ret = kobject_add(&mk->kobj); | 565 | ret = kobject_add(&mk->kobj); |
566 | BUG_ON(ret < 0); | 566 | BUG_ON(ret < 0); |
567 | param_sysfs_setup(mk, kparam, num_params, name_skip); | 567 | param_sysfs_setup(mk, kparam, num_params, name_skip); |
568 | mk->drivers_dir = kobject_add_dir(&mk->kobj, "drivers"); | ||
569 | kobject_uevent(&mk->kobj, KOBJ_ADD); | 568 | kobject_uevent(&mk->kobj, KOBJ_ADD); |
570 | } | 569 | } |
571 | 570 | ||