mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
kobject: convert /sys/hypervisor to use kobject_create
We don't need a kset here, a simple kobject will do just fine, so dynamically create the kobject and use it. We also rename hypervisor_subsys to hypervisor_kset to catch all users of the variable. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
881c6cfd7c
commit
2d72fc00a1
3 changed files with 11 additions and 7 deletions
|
@ -196,8 +196,8 @@ struct kset _name##_subsys = { \
|
|||
|
||||
/* The global /sys/kernel/ kset for people to chain off of */
|
||||
extern struct kset *kernel_kset;
|
||||
/* The global /sys/hypervisor/ subsystem */
|
||||
extern struct kset hypervisor_subsys;
|
||||
/* The global /sys/hypervisor/ kobject for people to chain off of */
|
||||
extern struct kobject *hypervisor_kobj;
|
||||
|
||||
extern int __must_check subsystem_register(struct kset *);
|
||||
extern void subsystem_unregister(struct kset *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue