summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-04-16 19:00:02 +0200
committerRob Herring <robh@kernel.org>2018-04-18 15:55:41 +0200
commit9cf7c9cb6b4d869cc26fafd3fe54c2cb69fc81ac (patch)
tree554c9da91e2d7decf40d7fcda4d1c837a263cdfb /drivers/of
parentLinux 4.17-rc1 (diff)
downloadlinux-9cf7c9cb6b4d869cc26fafd3fe54c2cb69fc81ac.tar.xz
linux-9cf7c9cb6b4d869cc26fafd3fe54c2cb69fc81ac.zip
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: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/of_numa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c
index f9d5480a4ae5..27d9b4bba535 100644
--- a/drivers/of/of_numa.c
+++ b/drivers/of/of_numa.c
@@ -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)
{