提交 3bc16307 编写于 作者: G Geert Uytterhoeven 提交者: Rob Herring

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: b9c13fe3 ("dt: Add of_device_compatible_match()")
Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: NRob Herring <robh@kernel.org>
上级 08cd94ec
...@@ -627,6 +627,12 @@ static inline int of_device_is_compatible(const struct device_node *device, ...@@ -627,6 +627,12 @@ static inline int of_device_is_compatible(const struct device_node *device,
return 0; 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) static inline bool of_device_is_available(const struct device_node *device)
{ {
return false; return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册