diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> | 2019-08-07 09:30:29 +0530 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2019-08-13 20:31:57 -0700 |
commit | 49bddc73d15c25a68e4294d76fc74519fda984cd (patch) | |
tree | 3a7ea35856232f3977c203cc37d54a56de29fd45 /drivers/nvdimm/of_pmem.c | |
parent | d45331b00ddb179e291766617259261c112db872 (diff) | |
download | linux-49bddc73d15c25a68e4294d76fc74519fda984cd.tar.bz2 |
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>
Diffstat (limited to 'drivers/nvdimm/of_pmem.c')
-rw-r--r-- | drivers/nvdimm/of_pmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvdimm/of_pmem.c b/drivers/nvdimm/of_pmem.c index a0c8dcfa0bf9..97187d6c0bdb 100644 --- a/drivers/nvdimm/of_pmem.c +++ b/drivers/nvdimm/of_pmem.c @@ -42,7 +42,7 @@ static int of_pmem_region_probe(struct platform_device *pdev) return -ENOMEM; priv->bus_desc.attr_groups = bus_attr_groups; - priv->bus_desc.provider_name = "of_pmem"; + priv->bus_desc.provider_name = kstrdup(pdev->name, GFP_KERNEL); priv->bus_desc.module = THIS_MODULE; priv->bus_desc.of_node = np; |