mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
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>
This commit is contained in:
parent
f30c53a873
commit
fe480a2675
2 changed files with 11 additions and 10 deletions
|
@ -565,7 +565,6 @@ static void __init kernel_param_sysfs_setup(const char *name,
|
|||
ret = kobject_add(&mk->kobj);
|
||||
BUG_ON(ret < 0);
|
||||
param_sysfs_setup(mk, kparam, num_params, name_skip);
|
||||
mk->drivers_dir = kobject_add_dir(&mk->kobj, "drivers");
|
||||
kobject_uevent(&mk->kobj, KOBJ_ADD);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue