Skip to content

Commit 2499695

Browse files
frowandrobherring
authored andcommitted
of: make __of_attach_node() static
__of_attach_node() is not used outside of drivers/of/dynamic.c. Make it static and remove it from drivers/of/of_private.h. Signed-off-by: Frank Rowand <frank.rowand@sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 7602f42 commit 2499695

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/of/dynamic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ int of_property_notify(int action, struct device_node *np,
216216
return of_reconfig_notify(action, &pr);
217217
}
218218

219-
void __of_attach_node(struct device_node *np)
219+
static void __of_attach_node(struct device_node *np)
220220
{
221221
const __be32 *phandle;
222222
int sz;

‎drivers/of/of_private.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ extern int __of_update_property(struct device_node *np,
9090
extern void __of_update_property_sysfs(struct device_node *np,
9191
struct property *newprop, struct property *oldprop);
9292

93-
extern void __of_attach_node(struct device_node *np);
9493
extern int __of_attach_node_sysfs(struct device_node *np);
9594
extern void __of_detach_node(struct device_node *np);
9695
extern void __of_detach_node_sysfs(struct device_node *np);

0 commit comments

Comments
 (0)