diff options
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index f95aee391e30..4d294a0b8a57 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -534,13 +534,10 @@ static inline const char *of_prop_next_string(struct property *prop, | |||
534 | #define of_match_node(_matches, _node) NULL | 534 | #define of_match_node(_matches, _node) NULL |
535 | #endif /* CONFIG_OF */ | 535 | #endif /* CONFIG_OF */ |
536 | 536 | ||
537 | #ifndef of_node_to_nid | 537 | #if defined(CONFIG_OF) && defined(CONFIG_NUMA) |
538 | static inline int of_node_to_nid(struct device_node *np) | 538 | extern int of_node_to_nid(struct device_node *np); |
539 | { | 539 | #else |
540 | return numa_node_id(); | 540 | static inline int of_node_to_nid(struct device_node *device) { return 0; } |
541 | } | ||
542 | |||
543 | #define of_node_to_nid of_node_to_nid | ||
544 | #endif | 541 | #endif |
545 | 542 | ||
546 | /** | 543 | /** |