diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-09-17 11:42:50 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-10-09 21:04:07 -0400 |
commit | 0c3f061c195ceb891067b6de9e4ecc347c4dea31 (patch) | |
tree | a576f97862dc34377dd55734bff47da6bb7603c7 /arch/powerpc | |
parent | 25ff79443cbfa924b8df1d4a8a0fbff83816938a (diff) |
of: implement of_node_to_nid as a weak function
Implement of_node_to_nid as weak function to remove the dependency on
asm/prom.h. This is in preparation to make prom.h optional.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/prom.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/powerpc/include/asm/prom.h b/arch/powerpc/include/asm/prom.h index bd215f74df0f..6707c16d8fc5 100644 --- a/arch/powerpc/include/asm/prom.h +++ b/arch/powerpc/include/asm/prom.h | |||
@@ -42,13 +42,6 @@ extern void kdump_move_device_tree(void); | |||
42 | /* cache lookup */ | 42 | /* cache lookup */ |
43 | struct device_node *of_find_next_cache_node(struct device_node *np); | 43 | struct device_node *of_find_next_cache_node(struct device_node *np); |
44 | 44 | ||
45 | #ifdef CONFIG_NUMA | ||
46 | extern int of_node_to_nid(struct device_node *device); | ||
47 | #else | ||
48 | static inline int of_node_to_nid(struct device_node *device) { return 0; } | ||
49 | #endif | ||
50 | #define of_node_to_nid of_node_to_nid | ||
51 | |||
52 | extern void of_instantiate_rtc(void); | 45 | extern void of_instantiate_rtc(void); |
53 | 46 | ||
54 | extern int of_get_ibm_chip_id(struct device_node *np); | 47 | extern int of_get_ibm_chip_id(struct device_node *np); |