[PATCH v2] of: Add empty of_device_is_available() function

Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj at renesas.com
Thu Feb 14 11:37:12 EST 2013


This commit adds an empty of_device_is_available() function for
!CONFIG_OF builds.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj at renesas.com>
---
V1: Fix email address.

 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