nfit, tools/testing/nvdimm/: unify shutdown paths
authorDan Williams <dan.j.williams@intel.com>
Fri, 22 Jul 2016 01:05:36 +0000 (18:05 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 22 Jul 2016 20:35:54 +0000 (13:35 -0700)
commit58cd71b4747432b0ef3b86db1b09c12e6c97204b
treea99518d92af22a31392b19a5972c4622a3a7eaf0
parentbc9775d8697f57b333b6b316fb5145d6ca9dc36d
nfit, tools/testing/nvdimm/: unify shutdown paths

While testing the new on-demand ARS patches we discovered that
differences between the nfit_test and normal nfit driver shutdown paths
can leak resources.  Unify the shutdown paths to trigger via a devm_
callback when the acpi_desc->dev is unbound from its driver.

Reviewed-by: Lee, Chun-Yi <jlee@suse.com>
Reported-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit.c
tools/testing/nvdimm/test/nfit.c