Skip to content

Commit 49bddc7

Browse files
kvaneeshdjbw
authored andcommitted
libnvdimm/of_pmem: Provide a unique name for bus provider
ndctl binaries, v66 and older, mistakenly require the ndbus to have unique names. If not while enumerating the bus in userspace it drops bus with similar names. This results in us not listing devices beneath the bus. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Tested-by: Vaibhav Jain <vaibhav@linux.ibm.com> Link: https://lore.kernel.org/r/20190807040029.11344-1-aneesh.kumar@linux.ibm.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent d45331b commit 49bddc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/nvdimm/of_pmem.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static int of_pmem_region_probe(struct platform_device *pdev)
4242
return -ENOMEM;
4343

4444
priv->bus_desc.attr_groups = bus_attr_groups;
45-
priv->bus_desc.provider_name = "of_pmem";
45+
priv->bus_desc.provider_name = kstrdup(pdev->name, GFP_KERNEL);
4646
priv->bus_desc.module = THIS_MODULE;
4747
priv->bus_desc.of_node = np;
4848

0 commit comments

Comments
 (0)