diff options
author | Jeremy Erickson <jerickso@cs.unc.edu> | 2014-04-18 17:06:00 -0400 |
---|---|---|
committer | Jeremy Erickson <jerickso@cs.unc.edu> | 2014-04-18 17:06:00 -0400 |
commit | a215aa7b9ab3759c047201199fba64d3042d7f13 (patch) | |
tree | bca37493d9b2233450e6d3ffced1261d0e4f71fe /drivers/edac/edac_mc.c | |
parent | d31199a77ef606f1d06894385f1852181ba6136b (diff) |
Update 2.6.36 to 2.6.36.4wip-dissipation2-jerickso
Diffstat (limited to 'drivers/edac/edac_mc.c')
-rw-r--r-- | drivers/edac/edac_mc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 6b21e25f7a84..6d2e34d0f52a 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac/edac_mc.c | |||
@@ -578,14 +578,16 @@ struct mem_ctl_info *edac_mc_del_mc(struct device *dev) | |||
578 | return NULL; | 578 | return NULL; |
579 | } | 579 | } |
580 | 580 | ||
581 | /* marking MCI offline */ | ||
582 | mci->op_state = OP_OFFLINE; | ||
583 | |||
584 | del_mc_from_global_list(mci); | 581 | del_mc_from_global_list(mci); |
585 | mutex_unlock(&mem_ctls_mutex); | 582 | mutex_unlock(&mem_ctls_mutex); |
586 | 583 | ||
587 | /* flush workq processes and remove sysfs */ | 584 | /* flush workq processes */ |
588 | edac_mc_workq_teardown(mci); | 585 | edac_mc_workq_teardown(mci); |
586 | |||
587 | /* marking MCI offline */ | ||
588 | mci->op_state = OP_OFFLINE; | ||
589 | |||
590 | /* remove from sysfs */ | ||
589 | edac_remove_sysfs_mci_device(mci); | 591 | edac_remove_sysfs_mci_device(mci); |
590 | 592 | ||
591 | edac_printk(KERN_INFO, EDAC_MC, | 593 | edac_printk(KERN_INFO, EDAC_MC, |