diff options
Diffstat (limited to 'drivers/edac/e7xxx_edac.c')
-rw-r--r-- | drivers/edac/e7xxx_edac.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c index 96ecc4926641..c7d11cc4e21a 100644 --- a/drivers/edac/e7xxx_edac.c +++ b/drivers/edac/e7xxx_edac.c | |||
@@ -414,16 +414,6 @@ static int e7xxx_probe1(struct pci_dev *pdev, int dev_idx) | |||
414 | 414 | ||
415 | debugf0("%s(): mci\n", __func__); | 415 | debugf0("%s(): mci\n", __func__); |
416 | 416 | ||
417 | /* make sure error reporting method is sane */ | ||
418 | switch (edac_op_state) { | ||
419 | case EDAC_OPSTATE_POLL: | ||
420 | case EDAC_OPSTATE_NMI: | ||
421 | break; | ||
422 | default: | ||
423 | edac_op_state = EDAC_OPSTATE_POLL; | ||
424 | break; | ||
425 | } | ||
426 | |||
427 | pci_read_config_dword(pdev, E7XXX_DRC, &drc); | 417 | pci_read_config_dword(pdev, E7XXX_DRC, &drc); |
428 | 418 | ||
429 | drc_chan = dual_channel_active(drc, dev_idx); | 419 | drc_chan = dual_channel_active(drc, dev_idx); |
@@ -565,6 +555,9 @@ static struct pci_driver e7xxx_driver = { | |||
565 | 555 | ||
566 | static int __init e7xxx_init(void) | 556 | static int __init e7xxx_init(void) |
567 | { | 557 | { |
558 | /* Ensure that the OPSTATE is set correctly for POLL or NMI */ | ||
559 | opstate_init(); | ||
560 | |||
568 | return pci_register_driver(&e7xxx_driver); | 561 | return pci_register_driver(&e7xxx_driver); |
569 | } | 562 | } |
570 | 563 | ||