Commit d6b05b84edf590ff872de6310ec20d60b5b37dd2
1 parent
6a8d8abb6e
Exists in
master
and in
7 other branches
Driver core: remove subsys_set_kset
This macro is only used by the driver core and is held over from when we had subsystems. It is not needed anymore. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Showing 3 changed files with 3 additions and 15 deletions Side-by-side Diff
drivers/base/bus.c
drivers/base/class.c
include/linux/kobject.h
... | ... | @@ -241,19 +241,6 @@ |
241 | 241 | #define kset_set_kset_s(obj,subsys) \ |
242 | 242 | (obj)->kset.kobj.kset = &(subsys) |
243 | 243 | |
244 | -/** | |
245 | - * subsys_set_kset(obj,subsys) - set kset for subsystem | |
246 | - * @obj: ptr to some object type. | |
247 | - * @_subsys: a subsystem object (not a ptr). | |
248 | - * | |
249 | - * Can be used for any object type with an embedded ->subsys. | |
250 | - * Sets the kset of @obj's kobject to @subsys.kset. This makes | |
251 | - * the object a member of that kset. | |
252 | - */ | |
253 | - | |
254 | -#define subsys_set_kset(obj,_subsys) \ | |
255 | - (obj)->subsys.kobj.kset = &(_subsys) | |
256 | - | |
257 | 244 | extern void subsystem_init(struct kset *); |
258 | 245 | extern int __must_check subsystem_register(struct kset *); |
259 | 246 | extern void subsystem_unregister(struct kset *); |