of/numa: drop export of of_node_to_nid
authorRob Herring <robh@kernel.org>
Mon, 16 Apr 2018 17:00:02 +0000 (12:00 -0500)
committerRob Herring <robh@kernel.org>
Wed, 18 Apr 2018 13:55:41 +0000 (08:55 -0500)
commit9cf7c9cb6b4d869cc26fafd3fe54c2cb69fc81ac
tree554c9da91e2d7decf40d7fcda4d1c837a263cdfb
parent60cc43fc888428bb2f18f08997432d426a243338
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>
drivers/of/of_numa.c