diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-04-25 13:38:48 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2017-06-14 14:41:46 -0400 |
commit | 3bc1630774bc9f202308ae04608a32c366b41caf (patch) | |
tree | e4d238d6c5df63673af7da5385a71850b631b76b /include/linux/of.h | |
parent | 08cd94ec522b68647110374a9bd13f94e693aa11 (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.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, | |||
627 | return 0; | 627 | return 0; |
628 | } | 628 | } |
629 | 629 | ||
630 | static inline int of_device_compatible_match(struct device_node *device, | ||
631 | const char *const *compat) | ||
632 | { | ||
633 | return 0; | ||
634 | } | ||
635 | |||
630 | static inline bool of_device_is_available(const struct device_node *device) | 636 | static inline bool of_device_is_available(const struct device_node *device) |
631 | { | 637 | { |
632 | return false; | 638 | return false; |