aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2012-04-13 16:18:34 +0200
committerBen Hutchings <ben@decadent.org.uk>2015-08-07 00:32:16 +0100
commite658cbfdf7032cab063e4c9a918bd49daed1cddc (patch)
tree5446cb20e44d1847d7a9b2d7744e12654845ab72 /include
parent64e195f6c6da1be9771afd672a452e5c3414a01a (diff)
downloadkernel_samsung_smdk4412-e658cbfdf7032cab063e4c9a918bd49daed1cddc.zip
kernel_samsung_smdk4412-e658cbfdf7032cab063e4c9a918bd49daed1cddc.tar.gz
kernel_samsung_smdk4412-e658cbfdf7032cab063e4c9a918bd49daed1cddc.tar.bz2
dt: Add empty of_property_match_string() function
commit bd3d5500f0c41a30149cb184362716096a17bc75 upstream. This commit adds an empty of_property_match_string() function for !CONFIG_OF builds. Acked-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Cc: Jonathan Toppins <jtoppins@cumulusnetworks.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/of.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 7e8f2c6..c81ef31 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -318,6 +318,13 @@ static inline int of_property_read_u64(const struct device_node *np,
return -ENOSYS;
}
+static inline int of_property_match_string(struct device_node *np,
+ const char *propname,
+ const char *string)
+{
+ return -ENOSYS;
+}
+
static inline struct device_node *of_parse_phandle(struct device_node *np,
const char *phandle_name,
int index)