diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-07-21 23:03:19 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-07-21 23:03:19 -0400 |
commit | bc9775d8697f57b333b6b316fb5145d6ca9dc36d (patch) | |
tree | 2eea64bed76f443a644ff078d2b2413a1dde29ce /tools | |
parent | e7a11b449e6e2e2caadf6792c7afeecd68800651 (diff) |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/nvdimm/test/nfit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c index 78cba1e3b1da..642713f15723 100644 --- a/tools/testing/nvdimm/test/nfit.c +++ b/tools/testing/nvdimm/test/nfit.c | |||
@@ -1463,6 +1463,7 @@ static int nfit_test_probe(struct platform_device *pdev) | |||
1463 | acpi_desc->blk_do_io = nfit_test_blk_do_io; | 1463 | acpi_desc->blk_do_io = nfit_test_blk_do_io; |
1464 | nd_desc = &acpi_desc->nd_desc; | 1464 | nd_desc = &acpi_desc->nd_desc; |
1465 | nd_desc->provider_name = NULL; | 1465 | nd_desc->provider_name = NULL; |
1466 | nd_desc->module = THIS_MODULE; | ||
1466 | nd_desc->ndctl = nfit_test_ctl; | 1467 | nd_desc->ndctl = nfit_test_ctl; |
1467 | acpi_desc->nvdimm_bus = nvdimm_bus_register(&pdev->dev, nd_desc); | 1468 | acpi_desc->nvdimm_bus = nvdimm_bus_register(&pdev->dev, nd_desc); |
1468 | if (!acpi_desc->nvdimm_bus) | 1469 | if (!acpi_desc->nvdimm_bus) |