]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
of: make __of_attach_node() static
authorFrank Rowand <frank.rowand@sony.com>
Wed, 21 Jun 2017 19:16:38 +0000 (12:16 -0700)
committerRob Herring <robh@kernel.org>
Thu, 22 Jun 2017 16:16:35 +0000 (11:16 -0500)
__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>
drivers/of/dynamic.c
drivers/of/of_private.h

index 888fdbc099920a7533d1df89a534db7b6908a9e0..0542cf8b6e3dcbab3cc8160f85b00ecfeb463e08 100644 (file)
@@ -216,7 +216,7 @@ int of_property_notify(int action, struct device_node *np,
        return of_reconfig_notify(action, &pr);
 }
 
-void __of_attach_node(struct device_node *np)
+static void __of_attach_node(struct device_node *np)
 {
        const __be32 *phandle;
        int sz;
index 4ebb0149d118ae57392e1e84752efd85429997a5..dd535365b5d2aed579eb6342642b2076e48d5d0b 100644 (file)
@@ -90,7 +90,6 @@ extern int __of_update_property(struct device_node *np,
 extern void __of_update_property_sysfs(struct device_node *np,
                struct property *newprop, struct property *oldprop);
 
-extern void __of_attach_node(struct device_node *np);
 extern int __of_attach_node_sysfs(struct device_node *np);
 extern void __of_detach_node(struct device_node *np);
 extern void __of_detach_node_sysfs(struct device_node *np);