Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75783
b: refs/heads/master
c: 5c03c7a
h: refs/heads/master
i:
  75781: 9f94d6d
  75779: 2278090
  75775: 83ddbd3
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 85f1cec commit 9aa3c4b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 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: 830d3cfb16728e2496edc2985ad8f68025135e37
refs/heads/master: 5c03c7ab886859eb195440dbb6ccb8c30c4e84cc
11 changes: 9 additions & 2 deletions trunk/drivers/base/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,15 @@ static struct kset_uevent_ops class_uevent_ops = {
.uevent = class_uevent,
};

static decl_subsys(class_obj, &class_uevent_ops);

/*
* DO NOT copy how this is created, kset_create_and_add() should be
* called, but this is a hold-over from the old-way and will be deleted
* entirely soon.
*/
static struct kset class_obj_subsys = {
.kobj = { .k_name = "class_obj", },
.uevent_ops = &class_uevent_ops,
};

static int class_device_add_attrs(struct class_device * cd)
{
Expand Down
6 changes: 0 additions & 6 deletions trunk/include/linux/kobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,6 @@ extern struct kobject * kset_find_obj(struct kset *, const char *);
#define set_kset_name(str) .kset = { .kobj = { .k_name = str } }


#define decl_subsys(_name,_uevent_ops) \
struct kset _name##_subsys = { \
.kobj = { .k_name = __stringify(_name) }, \
.uevent_ops =_uevent_ops, \
}

/* The global /sys/kernel/ kset for people to chain off of */
extern struct kset *kernel_kset;
/* The global /sys/hypervisor/ kobject for people to chain off of */
Expand Down

0 comments on commit 9aa3c4b

Please sign in to comment.