From: Greg Kroah-Hartman Date: Tue, 16 Oct 2007 16:11:44 +0000 (-0600) Subject: kobject: remove kobj_set_kset_s as no one is using it anymore X-Git-Tag: v2.6.25-rc1~1243^2~153 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=12d03da7c19366268bdbc9fb0cd08d719c0cc283;p=linux-2.6-omap-h63xx.git kobject: remove kobj_set_kset_s as no one is using it anymore What a confusing name for a macro... Cc: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 5031565ab30..0b97b3a5391 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -202,24 +202,6 @@ extern struct kset kernel_subsys; /* The global /sys/hypervisor/ subsystem */ extern struct kset hypervisor_subsys; -/* - * Helpers for setting the kset of registered objects. - * Often, a registered object belongs to a kset embedded in a - * subsystem. These do no magic, just make the resulting code - * easier to follow. - */ - -/** - * kobj_set_kset_s(obj,subsys) - set kset for embedded kobject. - * @obj: ptr to some object type. - * @subsys: a subsystem object (not a ptr). - * - * Can be used for any object type with an embedded ->kobj. - */ - -#define kobj_set_kset_s(obj,subsys) \ - (obj)->kobj.kset = &(subsys) - extern int __must_check subsystem_register(struct kset *); extern void subsystem_unregister(struct kset *);