lkml.org 
[lkml]   [2014]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH 02/02] of: Add OF=n stub for of_find_all_nodes()
From: Magnus Damm <damm+renesas@opensource.se>

Add a stub for the CONFIG_OF=n case of of_find_all_nodes().
The return value for the stub is NULL which is in sync with
when the full version of the function cannot find any nodes
registered. Added to allow removal of Kconfig dependency
handling for CONFIG_OF.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

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

--- 0001/include/linux/of.h
+++ work/include/linux/of.h 2014-06-06 19:00:38.000000000 +0900
@@ -349,6 +349,11 @@ int of_device_is_stdout_path(struct devi

#else /* CONFIG_OF */

+static inline struct device_node *of_find_all_nodes(struct device_node *prev)
+{
+ return NULL;
+}
+
static inline const char* of_node_full_name(const struct device_node *np)
{
return "<no-node>";

\
 
 \ /
  Last update: 2014-06-06 14:21    [W:0.067 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site