diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-03-12 15:47:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-30 19:52:49 -0400 |
commit | c3b19ff06e0808555403491d61e8f0cbbb53e933 (patch) | |
tree | 04fbb1a3a6944aa32d306f72cc8ca16d2446ba9a /drivers/base/base.h | |
parent | 4356d73d028ad0726cfaf31ad30c5d28fcd98795 (diff) |
driver core: remove no longer used "struct class_device"
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r-- | drivers/base/base.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index c0444146c09..2c9ae43e221 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h | |||
@@ -64,17 +64,6 @@ extern void sysdev_shutdown(void); | |||
64 | extern int sysdev_suspend(pm_message_t state); | 64 | extern int sysdev_suspend(pm_message_t state); |
65 | extern int sysdev_resume(void); | 65 | extern int sysdev_resume(void); |
66 | 66 | ||
67 | static inline struct class_device *to_class_dev(struct kobject *obj) | ||
68 | { | ||
69 | return container_of(obj, struct class_device, kobj); | ||
70 | } | ||
71 | |||
72 | static inline | ||
73 | struct class_device_attribute *to_class_dev_attr(struct attribute *_attr) | ||
74 | { | ||
75 | return container_of(_attr, struct class_device_attribute, attr); | ||
76 | } | ||
77 | |||
78 | extern char *make_class_name(const char *name, struct kobject *kobj); | 67 | extern char *make_class_name(const char *name, struct kobject *kobj); |
79 | 68 | ||
80 | extern int devres_release_all(struct device *dev); | 69 | extern int devres_release_all(struct device *dev); |