From: Dan Williams Date: Sat, 30 Jan 2016 01:42:51 +0000 (-0800) Subject: libnvdimm, pfn: fix restoring memmap location X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45eb570a0db3391c88cba04510a20fe7e4125497;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git libnvdimm, pfn: fix restoring memmap location This path was missed when turning on the memmap in pmem support. Permit 'pmem' as a valid location for the map. Reported-by: Jeff Moyer Signed-off-by: Dan Williams --- diff --git a/drivers/nvdimm/pfn_devs.c b/drivers/nvdimm/pfn_devs.c index 0cc9048b86e2..ae81a2f1da50 100644 --- a/drivers/nvdimm/pfn_devs.c +++ b/drivers/nvdimm/pfn_devs.c @@ -301,10 +301,8 @@ int nd_pfn_validate(struct nd_pfn *nd_pfn) switch (le32_to_cpu(pfn_sb->mode)) { case PFN_MODE_RAM: - break; case PFN_MODE_PMEM: - /* TODO: allocate from PMEM support */ - return -ENOTTY; + break; default: return -ENXIO; }