Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: remove duplicate declarations of __of_*_sysfs() functions

When CONFIG_OF_KOBJ was introduced in commit b56b5528f5b3 ("of: make
kobject and bin_attribute support configurable") and #ifdef-ed
versions of these declarations got added, the originals didn't get
removed.

Fixes: b56b5528f5b3 ("of: make kobject and bin_attribute support configurable")
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Link: https://lore.kernel.org/r/20211006061943.8472-1-zev@bewilderbeest.net
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Zev Weiss and committed by
Rob Herring
6663ae07 37ef2c34

-8
-8
drivers/of/of_private.h
··· 127 127 extern const void *__of_get_property(const struct device_node *np, 128 128 const char *name, int *lenp); 129 129 extern int __of_add_property(struct device_node *np, struct property *prop); 130 - extern int __of_add_property_sysfs(struct device_node *np, 131 - struct property *prop); 132 130 extern int __of_remove_property(struct device_node *np, struct property *prop); 133 - extern void __of_remove_property_sysfs(struct device_node *np, 134 - struct property *prop); 135 131 extern int __of_update_property(struct device_node *np, 136 132 struct property *newprop, struct property **oldprop); 137 - extern void __of_update_property_sysfs(struct device_node *np, 138 - struct property *newprop, struct property *oldprop); 139 133 140 - extern int __of_attach_node_sysfs(struct device_node *np); 141 134 extern void __of_detach_node(struct device_node *np); 142 - extern void __of_detach_node_sysfs(struct device_node *np); 143 135 144 136 extern void __of_sysfs_remove_bin_file(struct device_node *np, 145 137 struct property *prop);