summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-09-17 10:42:50 -0500
committerRob Herring <rob.herring@calxeda.com>2013-10-09 20:04:07 -0500
commit0c3f061c195ceb891067b6de9e4ecc347c4dea31 (patch)
treea576f97862dc34377dd55734bff47da6bb7603c7 /arch/sparc/include
parent25ff79443cbfa924b8df1d4a8a0fbff83816938a (diff)
downloadlinux-0c3f061c195ceb891067b6de9e4ecc347c4dea31.tar.bz2
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/sparc/include')
-rw-r--r--arch/sparc/include/asm/prom.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/sparc/include/asm/prom.h b/arch/sparc/include/asm/prom.h
index 67c62578d170..60c8d7bd4058 100644
--- a/arch/sparc/include/asm/prom.h
+++ b/arch/sparc/include/asm/prom.h
@@ -43,10 +43,6 @@ extern int of_getintprop_default(struct device_node *np,
const char *name,
int def);
extern int of_find_in_proplist(const char *list, const char *match, int len);
-#ifdef CONFIG_NUMA
-extern int of_node_to_nid(struct device_node *dp);
-#define of_node_to_nid of_node_to_nid
-#endif
extern void prom_build_devicetree(void);
extern void of_populate_present_mask(void);