libnvdimm, pfn, convert nd_pfn_probe() to devm
authorDan Williams <dan.j.williams@intel.com>
Fri, 18 Mar 2016 01:16:15 +0000 (18:16 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 22 Apr 2016 17:59:54 +0000 (10:59 -0700)
commitbd032943b5b2b336994171dcebc11531a38b45ba
tree3d5d30979a0f8a2c3b3d4e63f3f02d50f0bcf14c
parent298f2bc5db3851cf2e839a0025425256ef852139
libnvdimm, pfn, convert nd_pfn_probe() to devm

Pass the device performing the probe so we can use a devm allocation for
the pfn superblock.

Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/nd.h
drivers/nvdimm/pfn_devs.c
drivers/nvdimm/pmem.c