]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit813b06eadc4d51d72ee8f4442c920972b4fb464f
tree8d506e577373bbe5ae4a32e2bd1f6d1be7699c41
parent08db925b4bb98bc0f4fc21d94484a27aba9c832c
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