devm_memremap: convert to return ERR_PTR
authorDan Williams <dan.j.williams@intel.com>
Tue, 15 Sep 2015 06:42:20 +0000 (02:42 -0400)
committerDan Williams <dan.j.williams@intel.com>
Fri, 9 Oct 2015 21:00:33 +0000 (17:00 -0400)
commitb36f47617f6ce7c5e8e7c264b9d9ea0654d9f20a
treed08894bd10818244ad58444151f201eacc6fa5a7
parentd741314fe8318c1af497b8cf04ea3976b9509eca
devm_memremap: convert to return ERR_PTR

Make devm_memremap consistent with the error return scheme of
devm_memremap_pages to remove special casing in the pmem driver.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pmem.c
kernel/memremap.c