libnvdimm/of_pmem: Provide a unique name for bus provider
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Wed, 7 Aug 2019 04:00:29 +0000 (09:30 +0530)
committerDan Williams <dan.j.williams@intel.com>
Wed, 14 Aug 2019 03:31:57 +0000 (20:31 -0700)
commit49bddc73d15c25a68e4294d76fc74519fda984cd
tree3a7ea35856232f3977c203cc37d54a56de29fd45
parentd45331b00ddb179e291766617259261c112db872
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>
drivers/nvdimm/of_pmem.c