diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2003-06-03 05:36:54 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2003-06-03 05:36:54 -0700 |
| commit | 97c7645359897d826390a88dd41b4fc0bb5d564c (patch) | |
| tree | d57300d0b20dd92f4fce99b536bcb9dbd08c97c0 /drivers/hotplug | |
| parent | d632a5875eeeaa85ee14af77bee69793975cb17b (diff) | |
[PATCH] IBM PCI hotplug: remove direct access of pci_devices variable.
Diffstat (limited to 'drivers/hotplug')
| -rw-r--r-- | drivers/hotplug/ibmphp_core.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/hotplug/ibmphp_core.c b/drivers/hotplug/ibmphp_core.c index 761f8b64e566..2857dedb58ea 100644 --- a/drivers/hotplug/ibmphp_core.c +++ b/drivers/hotplug/ibmphp_core.c @@ -897,7 +897,6 @@ static int set_bus (struct slot * slot_cur) int rc; u8 speed; u8 cmd = 0x0; - const struct list_head *tmp; struct pci_dev * dev; int retval; @@ -945,13 +944,11 @@ static int set_bus (struct slot * slot_cur) cmd = HPC_BUS_100PCIXMODE; break; case BUS_SPEED_133: - /* This is to take care of the bug in CIOBX chip*/ - list_for_each (tmp, &pci_devices) { - dev = (struct pci_dev *) pci_dev_g (tmp); - if (dev) { - if ((dev->vendor == 0x1166) && (dev->device == 0x0101)) - ibmphp_hpc_writeslot (slot_cur, HPC_BUS_100PCIXMODE); - } + /* This is to take care of the bug in CIOBX chip */ + pci_for_each_dev(dev) { + if ((dev->vendor == PCI_VENDOR_ID_SERVERWORKS) && + (dev->device == 0x0101)) + ibmphp_hpc_writeslot (slot_cur, HPC_BUS_100PCIXMODE); } cmd = HPC_BUS_133PCIXMODE; break; |
