diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-01-30 04:42:51 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-01-30 04:43:16 +0300 |
commit | 45eb570a0db3391c88cba04510a20fe7e4125497 (patch) | |
tree | 37091e4a46c4f854cb85008cd0a8156ad565111c /drivers/nvdimm/pfn_devs.c | |
parent | 9c41242817f4b6d908886c0fdb036d9246c50630 (diff) | |
download | linux-45eb570a0db3391c88cba04510a20fe7e4125497.tar.xz |
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 <jmoyer@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/pfn_devs.c')
-rw-r--r-- | drivers/nvdimm/pfn_devs.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |