Commit b72b9d44 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in arch/x86_64/kernel/bluesmoke.c

parent 55fcd1d2
......@@ -125,9 +125,9 @@ void do_machine_check(struct pt_regs * regs, long error_code)
static struct pci_dev *find_k8_nb(void)
{
struct pci_dev *dev;
struct pci_dev *dev = NULL;
int cpu = smp_processor_id();
pci_for_each_dev(dev) {
while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
if (dev->bus->number==0 && PCI_FUNC(dev->devfn)==3 &&
PCI_SLOT(dev->devfn) == (24U+cpu))
return dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment