diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-01-30 01:42:51 (GMT) |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-01-30 01:43:16 (GMT) |
commit | 45eb570a0db3391c88cba04510a20fe7e4125497 (patch) | |
tree | 37091e4a46c4f854cb85008cd0a8156ad565111c /drivers/nvdimm | |
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')
-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 0cc9048b..ae81a2f 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; } |