]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm, of_pmem: use dev_to_node() instead of of_node_to_nid()
authorRob Herring <robh@kernel.org>
Mon, 16 Apr 2018 16:58:16 +0000 (11:58 -0500)
committerDan Williams <dan.j.williams@intel.com>
Thu, 19 Apr 2018 22:07:10 +0000 (15:07 -0700)
commit69ad50f6549366ab80d35bacd1c0727592d08dd0
treeb061b55d4c8bcb086a043184259bb7fff44dc58b
parent2f078fa9fce2a5bcf73c7d0d129da1079c7be381
libnvdimm, of_pmem: use dev_to_node() instead of of_node_to_nid()

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 f380d1556414 ("libnvdimm, of_pmem: workaround OF_NUMA=n
build error") can be reverted.

Fixes: 2db7aeb0848d ("libnvdimm: Add device-tree based driver")
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Oliver O'Halloran <oohall@gmail.com>
Cc: linux-nvdimm@lists.01.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/of_pmem.c