summaryrefslogtreecommitdiff
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-04-25 19:38:48 +0200
committerRob Herring <robh@kernel.org>2017-06-14 13:41:46 -0500
commit3bc1630774bc9f202308ae04608a32c366b41caf (patch)
treee4d238d6c5df63673af7da5385a71850b631b76b /include/linux/of.h
parent08cd94ec522b68647110374a9bd13f94e693aa11 (diff)
of: Provide dummy of_device_compatible_match() for compile-testing
Most of_device_*() functions have dummy versions for CONFIG_OF=n, but of_device_compatible_match() hasn't. Fix that to improve the ability to do compile-testing. Fixes: b9c13fe32faaa71c ("dt: Add of_device_compatible_match()") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 50fcdb54087f..c72ba9437a43 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -627,6 +627,12 @@ static inline int of_device_is_compatible(const struct device_node *device,
return 0;
}
+static inline int of_device_compatible_match(struct device_node *device,
+ const char *const *compat)
+{
+ return 0;
+}
+
static inline bool of_device_is_available(const struct device_node *device)
{
return false;