diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-11-19 13:19:21 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-28 13:33:03 -0500 |
commit | 1c9a9f59149e247e264db1fbf9f8ea3d5066eb64 (patch) | |
tree | 927f74bd083b31a01416d8c243fb3736fd9f7d86 /include/linux/kobject.h | |
parent | a42d1e31d4a2380cf1bda8e3510ff1859ddf55a5 (diff) |
kobject: remove CONFIG_HOTPLUG ifdefs
Remove conditional code based on CONFIG_HOTPLUG being false. It's
always on now in preparation of it going away as an option.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/kobject.h')
-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 1e57449395b1..939b11268c86 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -203,7 +203,6 @@ extern struct kobject *power_kobj; | |||
203 | /* The global /sys/firmware/ kobject for people to chain off of */ | 203 | /* The global /sys/firmware/ kobject for people to chain off of */ |
204 | extern struct kobject *firmware_kobj; | 204 | extern struct kobject *firmware_kobj; |
205 | 205 | ||
206 | #if defined(CONFIG_HOTPLUG) | ||
207 | int kobject_uevent(struct kobject *kobj, enum kobject_action action); | 206 | int kobject_uevent(struct kobject *kobj, enum kobject_action action); |
208 | int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, | 207 | int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, |
209 | char *envp[]); | 208 | char *envp[]); |
@@ -213,22 +212,5 @@ int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...); | |||
213 | 212 | ||
214 | int kobject_action_type(const char *buf, size_t count, | 213 | int kobject_action_type(const char *buf, size_t count, |
215 | enum kobject_action *type); | 214 | enum kobject_action *type); |
216 | #else | ||
217 | static inline int kobject_uevent(struct kobject *kobj, | ||
218 | enum kobject_action action) | ||
219 | { return 0; } | ||
220 | static inline int kobject_uevent_env(struct kobject *kobj, | ||
221 | enum kobject_action action, | ||
222 | char *envp[]) | ||
223 | { return 0; } | ||
224 | |||
225 | static inline __printf(2, 3) | ||
226 | int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...) | ||
227 | { return -ENOMEM; } | ||
228 | |||
229 | static inline int kobject_action_type(const char *buf, size_t count, | ||
230 | enum kobject_action *type) | ||
231 | { return -EINVAL; } | ||
232 | #endif | ||
233 | 215 | ||
234 | #endif /* _KOBJECT_H_ */ | 216 | #endif /* _KOBJECT_H_ */ |