diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-07-22 05:03:19 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-07-22 05:03:19 +0200 |
commit | bc9775d8697f57b333b6b316fb5145d6ca9dc36d (patch) | |
tree | 2eea64bed76f443a644ff078d2b2413a1dde29ce /drivers/acpi | |
parent | nfit: cleanup acpi_nfit_init calling convention (diff) | |
download | linux-bc9775d8697f57b333b6b316fb5145d6ca9dc36d.tar.xz linux-bc9775d8697f57b333b6b316fb5145d6ca9dc36d.zip |
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 'drivers/acpi')
-rw-r--r-- | drivers/acpi/nfit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/nfit.c b/drivers/acpi/nfit.c index fb80f32db525..e7eb3b6f1514 100644 --- a/drivers/acpi/nfit.c +++ b/drivers/acpi/nfit.c @@ -2417,6 +2417,7 @@ void acpi_nfit_desc_init(struct acpi_nfit_desc *acpi_desc, struct device *dev) acpi_desc->blk_do_io = acpi_nfit_blk_region_do_io; nd_desc = &acpi_desc->nd_desc; nd_desc->provider_name = "ACPI.NFIT"; + nd_desc->module = THIS_MODULE; nd_desc->ndctl = acpi_nfit_ctl; nd_desc->flush_probe = acpi_nfit_flush_probe; nd_desc->clear_to_send = acpi_nfit_clear_to_send; |