[PATCH] of: Add empty of_device_is_available() function
Nobuhiro Iwamatsu
nobuhiro.iwamatsu.yj at renesas.com
Thu Feb 14 11:35:09 EST 2013
From: Nobuhiro Iwamatsu <nobuhiro.iwamatsu at renesas.com>
This commit adds an empty of_device_is_available() function for
!CONFIG_OF builds.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu at renesas.com>
---
include/linux/of.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index 5ebcc5c..0be17ad 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -377,6 +377,11 @@ static inline int of_device_is_compatible(const struct device_node *device,
return 0;
}
+static inline int of_device_is_available(const struct device_node *device)
+{
+ return 0;
+}
+
static inline struct property *of_find_property(const struct device_node *np,
const char *name,
int *lenp)
--
1.7.10.4
More information about the devicetree-discuss
mailing list