diff options
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 c0444146c09a..2c9ae43e2219 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); |