devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] of: Add dummy for of_node_is_root if not CONFIG_OF
@ 2019-05-07  4:48 Douglas Anderson
  2019-05-07 14:52 ` Guenter Roeck
  2019-05-07 17:52 ` Frank Rowand
  0 siblings, 2 replies; 7+ messages in thread
From: Douglas Anderson @ 2019-05-07  4:48 UTC (permalink / raw)
  To: Rob Herring, Kees Cook
  Cc: linux-rockchip, jwerner, groeck, briannorris, Douglas Anderson,
	Frank Rowand, devicetree, linux-kernel

We'll add a dummy to just return false.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

 include/linux/of.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/of.h b/include/linux/of.h
index 0cf857012f11..62ae5c1cafa5 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -653,6 +653,11 @@ static inline bool of_have_populated_dt(void)
 	return false;
 }
 
+static inline bool of_node_is_root(const struct device_node *node)
+{
+	return false;
+}
+
 static inline struct device_node *of_get_compatible_child(const struct device_node *parent,
 					const char *compatible)
 {
-- 
2.21.0.1020.gf2820cf01a-goog

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-05-08 15:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07  4:48 [PATCH] of: Add dummy for of_node_is_root if not CONFIG_OF Douglas Anderson
2019-05-07 14:52 ` Guenter Roeck
2019-05-07 17:52 ` Frank Rowand
2019-05-07 17:59   ` Doug Anderson
2019-05-07 21:15     ` Kees Cook
2019-05-07 22:17     ` Frank Rowand
2019-05-08 15:51       ` Doug Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).