diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-06 01:24:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:11 -0500 |
commit | 43968d2f1648f4dc92437dc0363a3e88377445b3 (patch) | |
tree | c9ba656e289bbbb5d5de32abc4181ae1d65dee00 /include/linux/kobject.h | |
parent | 4ff6abff832fbc6cb1d769f6106c841bc2b09f63 (diff) |
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>
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r-- | include/linux/kobject.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 7b09136fb211..718b48811288 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -91,6 +91,7 @@ extern int __must_check kobject_init_and_add(struct kobject *kobj, | |||
91 | 91 | ||
92 | extern void kobject_del(struct kobject *); | 92 | extern void kobject_del(struct kobject *); |
93 | 93 | ||
94 | extern struct kobject * __must_check kobject_create(void); | ||
94 | extern struct kobject * __must_check kobject_create_and_add(const char *name, | 95 | extern struct kobject * __must_check kobject_create_and_add(const char *name, |
95 | struct kobject *parent); | 96 | struct kobject *parent); |
96 | 97 | ||
@@ -103,9 +104,6 @@ extern void kobject_unregister(struct kobject *); | |||
103 | extern struct kobject * kobject_get(struct kobject *); | 104 | extern struct kobject * kobject_get(struct kobject *); |
104 | extern void kobject_put(struct kobject *); | 105 | extern void kobject_put(struct kobject *); |
105 | 106 | ||
106 | extern struct kobject *kobject_kset_add_dir(struct kset *kset, | ||
107 | struct kobject *, const char *); | ||
108 | |||
109 | extern char * kobject_get_path(struct kobject *, gfp_t); | 107 | extern char * kobject_get_path(struct kobject *, gfp_t); |
110 | 108 | ||
111 | struct kobj_type { | 109 | struct kobj_type { |