[PATCH] IBM PCI hotplug: remove direct access of pci_devices variable.
drivers/hotplug/ibmphp_core.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diff -Nru a/drivers/hotplug/ibmphp_core.c b/drivers/hotplug/ibmphp_core.c
--- a/drivers/hotplug/ibmphp_core.c Wed Jun 4 18:12:01 2003
+++ b/drivers/hotplug/ibmphp_core.c Wed Jun 4 18:12:01 2003
@@ -897,7 +897,6 @@
int rc;
u8 speed;
u8 cmd = 0x0;
- const struct list_head *tmp;
struct pci_dev * dev;
int retval;
@@ -945,13 +944,11 @@
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/