aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 39924a962207..b330e289d71f 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -20,8 +20,6 @@
20struct kobject; 20struct kobject;
21struct module; 21struct module;
22 22
23extern int kobject_set_name(struct kobject *kobj, const char *name, ...)
24 __attribute__((format(printf, 2, 3)));
25/* FIXME 23/* FIXME
26 * The *owner field is no longer used, but leave around 24 * The *owner field is no longer used, but leave around
27 * until the tree gets cleaned up fully. 25 * until the tree gets cleaned up fully.
@@ -149,7 +147,7 @@ static inline void sysfs_remove_dir(struct kobject *kobj)
149 147
150static inline int sysfs_rename_dir(struct kobject *kobj, const char *new_name) 148static inline int sysfs_rename_dir(struct kobject *kobj, const char *new_name)
151{ 149{
152 return kobject_set_name(kobj, "%s", new_name); 150 return 0;
153} 151}
154 152
155static inline int sysfs_move_dir(struct kobject *kobj, 153static inline int sysfs_move_dir(struct kobject *kobj,