From: Geert Uytterhoeven Date: Tue, 25 Apr 2017 17:38:48 +0000 (+0200) Subject: of: Provide dummy of_device_compatible_match() for compile-testing X-Git-Tag: v4.13~376^2~21 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3bc1630774bc9f202308ae04608a32c366b41caf;p=mirror_ubuntu-bionic-kernel.git 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 Signed-off-by: Rob Herring --- 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;