Re: [PATCH] libnvdimm, of_pmem: use dev_to_node() instead of of_node_to_nid()

2018-04-16 Thread Dan Williams
On Mon, Apr 16, 2018 at 9:58 AM, Rob Herring wrote: > Remove the direct dependency on of_node_to_nid() by using dev_to_node() > instead. Any DT platform device will have its NUMA node id set when the > device is created. > > With this, commit 291717b6fbdb ("libnvdimm, of_pmem: workaround OF_NUMA=n

[PATCH] libnvdimm, of_pmem: use dev_to_node() instead of of_node_to_nid()

2018-04-16 Thread Rob Herring
Remove the direct dependency on of_node_to_nid() by using dev_to_node() instead. Any DT platform device will have its NUMA node id set when the device is created. With this, commit 291717b6fbdb ("libnvdimm, of_pmem: workaround OF_NUMA=n build error") can be reverted. Cc: Dan Williams Cc: Oliver