Commit 9cf7c9cb authored by Rob Herring's avatar Rob Herring

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.

Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 60cc43fc
...@@ -177,7 +177,6 @@ int of_node_to_nid(struct device_node *device) ...@@ -177,7 +177,6 @@ int of_node_to_nid(struct device_node *device)
return NUMA_NO_NODE; return NUMA_NO_NODE;
} }
EXPORT_SYMBOL(of_node_to_nid);
int __init of_numa_init(void) int __init of_numa_init(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment