aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nvdimm/of_pmem.c')
-rw-r--r--drivers/nvdimm/of_pmem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvdimm/of_pmem.c b/drivers/nvdimm/of_pmem.c
index 0a701837dfc0..6e5cbfd8cb13 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)
42 return -ENOMEM; 42 return -ENOMEM;
43 43
44 priv->bus_desc.attr_groups = bus_attr_groups; 44 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);
46 priv->bus_desc.module = THIS_MODULE; 46 priv->bus_desc.module = THIS_MODULE;
47 priv->bus_desc.of_node = np; 47 priv->bus_desc.of_node = np;
48 48
@@ -108,7 +108,6 @@ static struct platform_driver of_pmem_region_driver = {
108 .remove = of_pmem_region_remove, 108 .remove = of_pmem_region_remove,
109 .driver = { 109 .driver = {
110 .name = "of_pmem", 110 .name = "of_pmem",
111 .owner = THIS_MODULE,
112 .of_match_table = of_pmem_region_match, 111 .of_match_table = of_pmem_region_match,
113 }, 112 },
114}; 113};