diff options
Diffstat (limited to 'drivers/edac/edac_pci.c')
-rw-r--r-- | drivers/edac/edac_pci.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/edac/edac_pci.c b/drivers/edac/edac_pci.c index 2cf44b4db80..b4b38603b80 100644 --- a/drivers/edac/edac_pci.c +++ b/drivers/edac/edac_pci.c | |||
@@ -274,13 +274,12 @@ static void edac_pci_workq_setup(struct edac_pci_ctl_info *pci, | |||
274 | */ | 274 | */ |
275 | static void edac_pci_workq_teardown(struct edac_pci_ctl_info *pci) | 275 | static void edac_pci_workq_teardown(struct edac_pci_ctl_info *pci) |
276 | { | 276 | { |
277 | int status; | ||
278 | |||
279 | edac_dbg(0, "\n"); | 277 | edac_dbg(0, "\n"); |
280 | 278 | ||
281 | status = cancel_delayed_work(&pci->work); | 279 | pci->op_state = OP_OFFLINE; |
282 | if (status == 0) | 280 | |
283 | flush_workqueue(edac_workqueue); | 281 | cancel_delayed_work_sync(&pci->work); |
282 | flush_workqueue(edac_workqueue); | ||
284 | } | 283 | } |
285 | 284 | ||
286 | /* | 285 | /* |