Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75749
b: refs/heads/master
c: 443dbf9
h: refs/heads/master
i:
  75747: c304d35
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 1d55f6e commit 4c3e14c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59a548338ac6c9d7549c54278d0f724088585928
refs/heads/master: 443dbf9007854ef2892226615e23b60a35b89697
12 changes: 5 additions & 7 deletions trunk/drivers/base/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static struct kobj_type class_ktype = {
};

/* Hotplug events for classes go to the class_obj subsys */
static decl_subsys(class, NULL);
static struct kset *class_kset;


int class_create_file(struct class * cls, const struct class_attribute * attr)
Expand Down Expand Up @@ -149,7 +149,7 @@ int class_register(struct class * cls)
if (error)
return error;

cls->subsys.kobj.kset = &class_subsys;
cls->subsys.kobj.kset = class_kset;
cls->subsys.kobj.ktype = &class_ktype;

error = subsystem_register(&cls->subsys);
Expand Down Expand Up @@ -855,11 +855,9 @@ void class_interface_unregister(struct class_interface *class_intf)

int __init classes_init(void)
{
int retval;

retval = subsystem_register(&class_subsys);
if (retval)
return retval;
class_kset = kset_create_and_add("class", NULL, NULL);
if (!class_kset)
return -ENOMEM;

/* ick, this is ugly, the things we go through to keep from showing up
* in sysfs... */
Expand Down

0 comments on commit 4c3e14c

Please sign in to comment.