Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75853
b: refs/heads/master
c: e1543dd
h: refs/heads/master
i:
  75851: ad889f2
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 14844c0 commit aa7e8d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 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: b2d6db5878a0832659ed58476357eea2db915550
refs/heads/master: e1543ddf739b22a8c4218716ad50c26b3e147403
1 change: 0 additions & 1 deletion trunk/include/linux/kobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ static inline const char * kobject_name(const struct kobject * kobj)
return kobj->k_name;
}

extern void kobject_init(struct kobject *);
extern void kobject_init_ng(struct kobject *kobj, struct kobj_type *ktype);
extern int __must_check kobject_add(struct kobject *kobj,
struct kobject *parent,
Expand Down
11 changes: 3 additions & 8 deletions trunk/lib/kobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,7 @@ char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask)
}
EXPORT_SYMBOL_GPL(kobject_get_path);

/**
* kobject_init - initialize object.
* @kobj: object in question.
*/
void kobject_init(struct kobject * kobj)
static void kobject_init_internal(struct kobject * kobj)
{
if (!kobj)
return;
Expand Down Expand Up @@ -232,7 +228,7 @@ int kobject_register(struct kobject * kobj)
{
int error = -EINVAL;
if (kobj) {
kobject_init(kobj);
kobject_init_internal(kobj);
error = kobject_add(kobj);
if (!error)
kobject_uevent(kobj, KOBJ_ADD);
Expand Down Expand Up @@ -695,7 +691,7 @@ EXPORT_SYMBOL_GPL(kobject_create_and_add);

void kset_init(struct kset * k)
{
kobject_init(&k->kobj);
kobject_init_internal(&k->kobj);
INIT_LIST_HEAD(&k->list);
spin_lock_init(&k->list_lock);
}
Expand Down Expand Up @@ -887,7 +883,6 @@ struct kset *kset_create_and_add(const char *name,
}
EXPORT_SYMBOL_GPL(kset_create_and_add);

EXPORT_SYMBOL(kobject_init);
EXPORT_SYMBOL(kobject_register);
EXPORT_SYMBOL(kobject_unregister);
EXPORT_SYMBOL(kobject_get);
Expand Down

0 comments on commit aa7e8d2

Please sign in to comment.