595 0,
596 }
597};
598
599MODULE_DEVICE_TABLE(pci, i82975x_pci_tbl);
600
601static struct pci_driver i82975x_driver = {
602 .name = EDAC_MOD_STR,
603 .probe = i82975x_init_one,
604 .remove = __devexit_p(i82975x_remove_one),
605 .id_table = i82975x_pci_tbl,
606};
607
608static int __init i82975x_init(void)
609{
610 int pci_rc;
611
612 debugf3("%s()\n", __func__);
613
614
615 opstate_init();
616
617 pci_rc = pci_register_driver(&i82975x_driver);
618 if (pci_rc < 0)
619 goto fail0;
620
621 if (mci_pdev == NULL) {
622 mci_pdev = pci_get_device(PCI_VENDOR_ID_INTEL,
623 PCI_DEVICE_ID_INTEL_82975_0, NULL);
624
625 if (!mci_pdev) {
626 debugf0("i82975x pci_get_device fail\n");
627 pci_rc = -ENODEV;
628 goto fail1;
629 }
630
631 pci_rc = i82975x_init_one(mci_pdev, i82975x_pci_tbl);
632
633 if (pci_rc < 0) {
634 debugf0("i82975x init fail\n");
635 pci_rc = -ENODEV;