[PATCH 02/02] of: Add OF=n stub for of_find_all_nodes()
From: Magnus Damm
Date: Fri Jun 06 2014 - 07:57:27 EST
From: Magnus Damm <damm+renesas@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxx>
---
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>";
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/