Commit 97c76453 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] IBM PCI hotplug: remove direct access of pci_devices variable.

parent d632a587
...@@ -897,7 +897,6 @@ static int set_bus (struct slot * slot_cur) ...@@ -897,7 +897,6 @@ static int set_bus (struct slot * slot_cur)
int rc; int rc;
u8 speed; u8 speed;
u8 cmd = 0x0; u8 cmd = 0x0;
const struct list_head *tmp;
struct pci_dev * dev; struct pci_dev * dev;
int retval; int retval;
...@@ -945,13 +944,11 @@ static int set_bus (struct slot * slot_cur) ...@@ -945,13 +944,11 @@ static int set_bus (struct slot * slot_cur)
cmd = HPC_BUS_100PCIXMODE; cmd = HPC_BUS_100PCIXMODE;
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 */
list_for_each (tmp, &pci_devices) { pci_for_each_dev(dev) {
dev = (struct pci_dev *) pci_dev_g (tmp); if ((dev->vendor == PCI_VENDOR_ID_SERVERWORKS) &&
if (dev) { (dev->device == 0x0101))
if ((dev->vendor == 0x1166) && (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;
......
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