diff options
Diffstat (limited to 'kernel/tools/testing/nvdimm')
-rw-r--r-- | kernel/tools/testing/nvdimm/test/nfit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/tools/testing/nvdimm/test/nfit.c b/kernel/tools/testing/nvdimm/test/nfit.c index 51cf8256c..f0d1c8ff8 100644 --- a/kernel/tools/testing/nvdimm/test/nfit.c +++ b/kernel/tools/testing/nvdimm/test/nfit.c @@ -13,6 +13,7 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/platform_device.h> #include <linux/dma-mapping.h> +#include <linux/workqueue.h> #include <linux/libnvdimm.h> #include <linux/vmalloc.h> #include <linux/device.h> @@ -1246,6 +1247,7 @@ static int nfit_test_probe(struct platform_device *pdev) if (nfit_test->setup != nfit_test0_setup) return 0; + flush_work(&acpi_desc->work); nfit_test->setup_hotplug = 1; nfit_test->setup(nfit_test); |