Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1630205

[PATCH v2 2/4] of: make __of_attach_node() static

From frowand.list@gmail.com
Newsgroups linux.kernel
Subject [PATCH v2 2/4] of: make __of_attach_node() static
Date 2017-04-25 08:30 +0200
Message-ID <tA293-10q-9@gated-at.bofh.it> (permalink)
References <tA293-10q-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Frank Rowand <frank.rowand@sony.com>

__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>
---
 drivers/of/dynamic.c    | 2 +-
 drivers/of/of_private.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c
index 59545b8fbf46..0b9cf6d5914c 100644
--- a/drivers/of/dynamic.c
+++ b/drivers/of/dynamic.c
@@ -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)
 {
 	np->child = NULL;
 	np->sibling = np->parent->child;
diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h
index 33f11a5384f3..b1ff70e1fdda 100644
--- a/drivers/of/of_private.h
+++ b/drivers/of/of_private.h
@@ -79,7 +79,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);
-- 
Frank Rowand <frank.rowand@sony.com>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/4] of: remove *phandle properties from expanded device tree frowand.list@gmail.com - 2017-04-25 08:30 +0200
  [PATCH v2 4/4] of: detect invalid phandle in overlay frowand.list@gmail.com - 2017-04-25 08:30 +0200
  [PATCH v2 2/4] of: make __of_attach_node() static frowand.list@gmail.com - 2017-04-25 08:30 +0200
  [PATCH v2 1/4] of: remove *phandle properties from expanded device tree frowand.list@gmail.com - 2017-04-25 08:30 +0200
  [PATCH v2 3/4] of: be consistent in form of file mode frowand.list@gmail.com - 2017-04-25 08:30 +0200

csiph-web