libnvdimm: Export nvdimm shutdown helper, nvdimm_delete()
authorDan Williams <dan.j.williams@intel.com>
Tue, 15 Jun 2021 23:18:22 +0000 (16:18 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 15 Jun 2021 23:47:22 +0000 (16:47 -0700)
commitfd14602d05229671be81018fa226f9afdafdba88
tree1fc7504178f0e571df5f34bfd87c23bf0d11634a
parent8fdcb1704f61a8fd9be0f3849a174d084def0666
libnvdimm: Export nvdimm shutdown helper, nvdimm_delete()

CXL is a hotplug bus and arranges for nvdimm devices to be dynamically
discovered and removed. The libnvdimm core manages shutdown of nvdimm
security operations when the device is unregistered. That functionality
is moved to nvdimm_delete() and invoked by the CXL-to-nvdimm glue code.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/162379910271.2993820.2955889139842401250.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/bus.c
drivers/nvdimm/dimm_devs.c
include/linux/libnvdimm.h