Skip to contentSkip to conversation

of/numa: drop export of of_node_to_nid

PATCH New Rob Herring 1 participant 1 message Apr 17, 2018 Device tree

lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 of/numa: drop export of of_node_to_nid

The "generic" implementation of of_node_to_nid is only used by arm64 and only in built-in code, so remove its export. Any device with a struct device should be able to use dev_to_node() instead. Also, exporting of_node_to_nid doesn't actually work if we build a module on an arch that doesn't select OF_NUMA nor provide its own of_node_to_nid implementation.

---
 drivers/of/of_numa.c | 1 -
 1 file changed, 1 deletion(-)
drivers/of/of_numa.c +0 -1
index f9d5480a4ae5..27d9b4bba535 100644
@@ -177,7 +177,6 @@ int of_node_to_nid(struct device_node *device)
 
 	return NUMA_NO_NODE;
 }
-EXPORT_SYMBOL(of_node_to_nid);
 
 int __init of_numa_init(void)
 {
Signature · 1 line
2.14.1