kobject: get rid of kobject_kset_add_dir
kobject_kset_add_dir is only called in one place so remove it and use kobject_create() instead. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
4ff6abff83
commit
43968d2f16
3 changed files with 20 additions and 37 deletions
|
@ -91,6 +91,7 @@ extern int __must_check kobject_init_and_add(struct kobject *kobj,
|
|||
|
||||
extern void kobject_del(struct kobject *);
|
||||
|
||||
extern struct kobject * __must_check kobject_create(void);
|
||||
extern struct kobject * __must_check kobject_create_and_add(const char *name,
|
||||
struct kobject *parent);
|
||||
|
||||
|
@ -103,9 +104,6 @@ extern void kobject_unregister(struct kobject *);
|
|||
extern struct kobject * kobject_get(struct kobject *);
|
||||
extern void kobject_put(struct kobject *);
|
||||
|
||||
extern struct kobject *kobject_kset_add_dir(struct kset *kset,
|
||||
struct kobject *, const char *);
|
||||
|
||||
extern char * kobject_get_path(struct kobject *, gfp_t);
|
||||
|
||||
struct kobj_type {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue