libnvdimm: Add of_node to region and bus descriptors
authorOliver O'Halloran <oohall@gmail.com>
Fri, 6 Apr 2018 05:21:13 +0000 (15:21 +1000)
committerDan Williams <dan.j.williams@intel.com>
Sat, 7 Apr 2018 14:53:23 +0000 (07:53 -0700)
commit1ff19f487a7e55bf3cebc96ea2a9a38d66fb7db7
tree8d506e577373bbe5ae4a32e2bd1f6d1be7699c41
parent60ce0f936bdad595a5cfc50b6e347a7de183ab59
libnvdimm: Add of_node to region and bus descriptors

We want to be able to cross reference the region and bus devices
with the device tree node that they were spawned from. libNVDIMM
handles creating the actual devices for these internally, so we
need to pass in a pointer to the relevant node in the descriptor.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/bus.c
drivers/nvdimm/region_devs.c
include/linux/libnvdimm.h