dect
/
linux-2.6
Archived
13
0
Fork 0

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 <nicolas.ferre@atmel.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
Nicolas Ferre 2011-10-24 11:53:32 +02:00 committed by Grant Likely
parent 36a0904ea0
commit 5762c20593
1 changed files with 1 additions and 0 deletions

View File

@ -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,