Commit 9cdb63b7 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/pci/hotplug/ibmphp_core.c

parent 5b0b7250
...@@ -898,7 +898,7 @@ static int set_bus (struct slot * slot_cur) ...@@ -898,7 +898,7 @@ static int set_bus (struct slot * slot_cur)
int rc; int rc;
u8 speed; u8 speed;
u8 cmd = 0x0; u8 cmd = 0x0;
struct pci_dev * dev; struct pci_dev *dev = NULL;
int retval; int retval;
debug ("%s - entry slot # %d \n", __FUNCTION__, slot_cur->number); debug ("%s - entry slot # %d \n", __FUNCTION__, slot_cur->number);
...@@ -946,11 +946,9 @@ static int set_bus (struct slot * slot_cur) ...@@ -946,11 +946,9 @@ static int set_bus (struct slot * slot_cur)
break; break;
case BUS_SPEED_133: case BUS_SPEED_133:
/* This is to take care of the bug in CIOBX chip */ /* This is to take care of the bug in CIOBX chip */
pci_for_each_dev(dev) { while ((dev = pci_find_device(PCI_VENDOR_ID_SERVERWORKS,
if ((dev->vendor == PCI_VENDOR_ID_SERVERWORKS) && 0x0101, dev)) != NULL)
(dev->device == 0x0101))
ibmphp_hpc_writeslot (slot_cur, HPC_BUS_100PCIXMODE); ibmphp_hpc_writeslot (slot_cur, HPC_BUS_100PCIXMODE);
}
cmd = HPC_BUS_133PCIXMODE; cmd = HPC_BUS_133PCIXMODE;
break; break;
default: default:
......
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