summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/edac/edac_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/edac/edac_pci.c')
-rw-r--r--kernel/drivers/edac/edac_pci.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/drivers/edac/edac_pci.c b/kernel/drivers/edac/edac_pci.c
index 2cf44b4db..b4b38603b 100644
--- a/kernel/drivers/edac/edac_pci.c
+++ b/kernel/drivers/edac/edac_pci.c
@@ -274,13 +274,12 @@ static void edac_pci_workq_setup(struct edac_pci_ctl_info *pci,
*/
static void edac_pci_workq_teardown(struct edac_pci_ctl_info *pci)
{
- int status;
-
edac_dbg(0, "\n");
- status = cancel_delayed_work(&pci->work);
- if (status == 0)
- flush_workqueue(edac_workqueue);
+ pci->op_state = OP_OFFLINE;
+
+ cancel_delayed_work_sync(&pci->work);
+ flush_workqueue(edac_workqueue);
}
/*