aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/e820.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nvdimm/e820.c')
-rw-r--r--drivers/nvdimm/e820.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvdimm/e820.c b/drivers/nvdimm/e820.c
index b0045a505dc8..95825b38559a 100644
--- a/drivers/nvdimm/e820.c
+++ b/drivers/nvdimm/e820.c
@@ -55,7 +55,7 @@ static int e820_pmem_probe(struct platform_device *pdev)
55 for (p = iomem_resource.child; p ; p = p->sibling) { 55 for (p = iomem_resource.child; p ; p = p->sibling) {
56 struct nd_region_desc ndr_desc; 56 struct nd_region_desc ndr_desc;
57 57
58 if (strncmp(p->name, "Persistent Memory (legacy)", 26) != 0) 58 if (p->desc != IORES_DESC_PERSISTENT_MEMORY_LEGACY)
59 continue; 59 continue;
60 60
61 memset(&ndr_desc, 0, sizeof(ndr_desc)); 61 memset(&ndr_desc, 0, sizeof(ndr_desc));