libnvdimm: move ->module to struct nvdimm_bus_descriptor
authorDan Williams <dan.j.williams@intel.com>
Fri, 22 Jul 2016 03:03:19 +0000 (20:03 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 22 Jul 2016 03:03:19 +0000 (20:03 -0700)
commitbc9775d8697f57b333b6b316fb5145d6ca9dc36d
tree2eea64bed76f443a644ff078d2b2413a1dde29ce
parente7a11b449e6e2e2caadf6792c7afeecd68800651
libnvdimm: move ->module to struct nvdimm_bus_descriptor

Let the provider module be explicitly passed in rather than implicitly
assumed by the module that calls nvdimm_bus_register().  This is in
preparation for unifying the nfit and nfit_test driver teardown paths.

Reviewed-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit.c
drivers/nvdimm/bus.c
drivers/nvdimm/core.c
drivers/nvdimm/e820.c
drivers/nvdimm/nd-core.h
include/linux/libnvdimm.h
tools/testing/nvdimm/test/nfit.c