Thread (1 message) 1 message, 1 author, 2018-03-23

Re: [PATCH 2/6] libnvdimm: Add nd_region_destroy()

From: Dan Williams <hidden>
Date: 2018-03-23 16:59:45
Also in: linux-devicetree, nvdimm

On Fri, Mar 23, 2018 at 1:12 AM, Oliver O'Halloran [off-list ref] wrote:
quoted hunk
Currently there's no way to remove a region from and nvdimm_bus without
tearing down the whole bus. This patch adds an API for removing a single
region from the bus so that we can implement a sensible unbind operation
for the of_nd_region platform driver.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
---
 drivers/nvdimm/region_devs.c | 6 ++++++
 include/linux/libnvdimm.h    | 1 +
 2 files changed, 7 insertions(+)
diff --git a/drivers/nvdimm/region_devs.c b/drivers/nvdimm/region_devs.c
index 2f1d5771100e..76f46fd1fae0 100644
--- a/drivers/nvdimm/region_devs.c
+++ b/drivers/nvdimm/region_devs.c
@@ -1039,6 +1039,12 @@ struct nd_region *nvdimm_blk_region_create(struct nvdimm_bus *nvdimm_bus,
 }
 EXPORT_SYMBOL_GPL(nvdimm_blk_region_create);

+void nd_region_destroy(struct nd_region *region)
Let's put this in the "nvdimm_" namespace so it pairs with the
nvdimm_*_region_create() apis.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help