mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
driver core: make /sys/power a kobject
/sys/power should not be a kset, that's overkill. This patch renames it to power_kset and fixes up all usages of it in the tree. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
37b0c02034
commit
d76e15fb20
5 changed files with 13 additions and 13 deletions
|
@ -276,7 +276,7 @@ EXPORT_SYMBOL(pm_suspend);
|
|||
|
||||
#endif /* CONFIG_SUSPEND */
|
||||
|
||||
struct kset *power_kset;
|
||||
struct kobject *power_kobj;
|
||||
|
||||
/**
|
||||
* state - control system power state.
|
||||
|
@ -389,10 +389,10 @@ static struct attribute_group attr_group = {
|
|||
|
||||
static int __init pm_init(void)
|
||||
{
|
||||
power_kset = kset_create_and_add("power", NULL, NULL);
|
||||
if (!power_kset)
|
||||
power_kobj = kobject_create_and_add("power", NULL);
|
||||
if (!power_kobj)
|
||||
return -ENOMEM;
|
||||
return sysfs_create_group(&power_kset->kobj, &attr_group);
|
||||
return sysfs_create_group(power_kobj, &attr_group);
|
||||
}
|
||||
|
||||
core_initcall(pm_init);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue