diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-04-25 19:38:48 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2017-06-14 13:41:46 -0500 |
commit | 3bc1630774bc9f202308ae04608a32c366b41caf (patch) | |
tree | e4d238d6c5df63673af7da5385a71850b631b76b /include/linux/of.h | |
parent | 08cd94ec522b68647110374a9bd13f94e693aa11 (diff) | |
download | lwn-3bc1630774bc9f202308ae04608a32c366b41caf.tar.gz lwn-3bc1630774bc9f202308ae04608a32c366b41caf.zip |
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.h | 6 |
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; |