From: Nicolas Ferre Date: Mon, 24 Oct 2011 09:53:32 +0000 (+0200) Subject: dt: Add empty of_match_node() macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5762c20593b6b959f1470dc6f1ff4ca4d9570f8d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dt: Add empty of_match_node() macro Add an empty macro for of_match_node() that will save some '#ifdef CONFIG_OF' for non-dt builds. I have chosen to use a macro instead of a function to be able to avoid defining the first parameter. In fact, this "struct of_device_id *" first parameter is usualy not defined as well on non-dt builds. Signed-off-by: Nicolas Ferre Acked-by: Grant Likely --- diff --git a/include/linux/of.h b/include/linux/of.h index 736b7477beb2..92c40a142243 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -303,6 +303,7 @@ static inline struct device_node *of_parse_phandle(struct device_node *np, } #define of_match_ptr(_ptr) NULL +#define of_match_node(_matches, _node) NULL #endif /* CONFIG_OF */ static inline int of_property_read_u32(const struct device_node *np,