diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-16 12:11:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:10 -0500 |
commit | 12d03da7c19366268bdbc9fb0cd08d719c0cc283 (patch) | |
tree | 9cda67772234b3962706c5bef5d406aebd185445 /include/linux | |
parent | 3514faca19a6fdc209734431c509631ea92b094e (diff) |
kobject: remove kobj_set_kset_s as no one is using it anymore
What a confusing name for a macro...
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kobject.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 5031565ab30d..0b97b3a53917 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -202,24 +202,6 @@ extern struct kset kernel_subsys; | |||
202 | /* The global /sys/hypervisor/ subsystem */ | 202 | /* The global /sys/hypervisor/ subsystem */ |
203 | extern struct kset hypervisor_subsys; | 203 | extern struct kset hypervisor_subsys; |
204 | 204 | ||
205 | /* | ||
206 | * Helpers for setting the kset of registered objects. | ||
207 | * Often, a registered object belongs to a kset embedded in a | ||
208 | * subsystem. These do no magic, just make the resulting code | ||
209 | * easier to follow. | ||
210 | */ | ||
211 | |||
212 | /** | ||
213 | * kobj_set_kset_s(obj,subsys) - set kset for embedded kobject. | ||
214 | * @obj: ptr to some object type. | ||
215 | * @subsys: a subsystem object (not a ptr). | ||
216 | * | ||
217 | * Can be used for any object type with an embedded ->kobj. | ||
218 | */ | ||
219 | |||
220 | #define kobj_set_kset_s(obj,subsys) \ | ||
221 | (obj)->kobj.kset = &(subsys) | ||
222 | |||
223 | extern int __must_check subsystem_register(struct kset *); | 205 | extern int __must_check subsystem_register(struct kset *); |
224 | extern void subsystem_unregister(struct kset *); | 206 | extern void subsystem_unregister(struct kset *); |
225 | 207 | ||