Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217390
b: refs/heads/master
c: 3c52cc5
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Oct 24, 2010
1 parent 593a5c8 commit 1f05f0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: a3e1541637f2096ab31af311c53eaeb0853650d3
refs/heads/master: 3c52cc57ccd5c99441368d5e66be36681ce90e72
9 changes: 5 additions & 4 deletions trunk/drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ static const struct pci_id_table pci_dev_table[] = {
PCI_ID_TABLE_ENTRY(pci_dev_descr_i7core_nehalem),
PCI_ID_TABLE_ENTRY(pci_dev_descr_lynnfield),
PCI_ID_TABLE_ENTRY(pci_dev_descr_i7core_westmere),
{0,} /* 0 terminated list. */
};

/*
Expand Down Expand Up @@ -1409,14 +1410,13 @@ static int i7core_get_onedevice(struct pci_dev **prev,

static int i7core_get_all_devices(void)
{
int i, j, rc, last_bus;
int i, rc, last_bus;
struct pci_dev *pdev = NULL;
const struct pci_id_table *table;
const struct pci_id_table *table = pci_dev_table;

last_bus = i7core_pci_lastbus();

for (j = 0; j < ARRAY_SIZE(pci_dev_table); j++) {
table = &pci_dev_table[j];
while (table && table->descr) {
for (i = 0; i < table->n_devs; i++) {
pdev = NULL;
do {
Expand All @@ -1432,6 +1432,7 @@ static int i7core_get_all_devices(void)
}
} while (pdev);
}
table++;
}

return 0;
Expand Down

0 comments on commit 1f05f0c

Please sign in to comment.