patch-2.3.37 linux/arch/arm/kernel/bios32.c
Next file: linux/arch/i386/boot/setup.S
Previous file: linux/arch/alpha/kernel/sys_sio.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Thu Jan 6 09:54:06 2000
- Orig file:
v2.3.36/linux/arch/arm/kernel/bios32.c
- Orig date:
Tue Dec 14 01:27:23 1999
diff -u --recursive --new-file v2.3.36/linux/arch/arm/kernel/bios32.c linux/arch/arm/kernel/bios32.c
@@ -24,7 +24,7 @@
{
struct pci_dev *dev;
- for (dev = pci_devices; dev; dev = dev->next) {
+ pci_for_each_dev(dev) {
u16 status;
pci_read_config_word(dev, PCI_STATUS, &status);
@@ -121,11 +121,12 @@
struct pci_dev *dev;
int idx;
- for (dev = pci_devices; dev; dev = dev->next)
+ pci_for_each_dev(dev) {
for (idx = 0; idx < PCI_NUM_RESOURCES; idx++)
if (dev->resource[idx].flags &&
dev->resource[idx].start)
pci_claim_resource(dev, idx);
+ }
}
void __init
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])