]> 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)
commit93576efa5c62cd6d6cb9f84845d8067b773ceb2b
tree8d506e577373bbe5ae4a32e2bd1f6d1be7699c41
parent786f7a5e9eaa2ae5e077d74a28235fe5cdcd760d
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