Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273298
b: refs/heads/master
c: 4055759
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Nov 1, 2011
1 parent c2cf1b1 commit 614aab1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9902f24fc2d6bcc836622aa70e77f7f9dfb30a9
refs/heads/master: 4055759145b421537207ed0d034041f1774ab41d
20 changes: 18 additions & 2 deletions trunk/drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ static int i7core_register_mci(struct i7core_dev *i7core_dev)
static int __devinit i7core_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
int rc;
int rc, count = 0;
struct i7core_dev *i7core_dev;

/* get the pci devices we want to reserve for our use */
Expand All @@ -2246,12 +2246,28 @@ static int __devinit i7core_probe(struct pci_dev *pdev,
goto fail0;

list_for_each_entry(i7core_dev, &i7core_edac_list, list) {
count++;
rc = i7core_register_mci(i7core_dev);
if (unlikely(rc < 0))
goto fail1;
}

i7core_printk(KERN_INFO, "Driver loaded.\n");
/*
* Nehalem-EX uses a different memory controller. However, as the
* memory controller is not visible on some Nehalem/Nehalem-EP, we
* need to indirectly probe via a X58 PCI device. The same devices
* are found on (some) Nehalem-EX. So, on those machines, the
* probe routine needs to return -ENODEV, as the actual Memory
* Controller registers won't be detected.
*/
if (!count) {
rc = -ENODEV;
goto fail1;
}

i7core_printk(KERN_INFO,
"Driver loaded, %d memory controller(s) found.\n",
count);

mutex_unlock(&i7core_edac_lock);
return 0;
Expand Down

0 comments on commit 614aab1

Please sign in to comment.