diff options
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index cd929aed3613..aee6a0acbbe9 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -450,7 +450,7 @@ static void cleanup_bridge(struct acpiphp_bridge *bridge) | |||
450 | */ | 450 | */ |
451 | static unsigned char acpiphp_max_busnr(struct pci_bus *bus) | 451 | static unsigned char acpiphp_max_busnr(struct pci_bus *bus) |
452 | { | 452 | { |
453 | struct list_head *tmp; | 453 | struct pci_bus *tmp; |
454 | unsigned char max, n; | 454 | unsigned char max, n; |
455 | 455 | ||
456 | /* | 456 | /* |
@@ -463,8 +463,8 @@ static unsigned char acpiphp_max_busnr(struct pci_bus *bus) | |||
463 | */ | 463 | */ |
464 | max = bus->busn_res.start; | 464 | max = bus->busn_res.start; |
465 | 465 | ||
466 | list_for_each(tmp, &bus->children) { | 466 | list_for_each_entry(tmp, &bus->children, node) { |
467 | n = pci_bus_max_busnr(pci_bus_b(tmp)); | 467 | n = pci_bus_max_busnr(tmp); |
468 | if (n > max) | 468 | if (n > max) |
469 | max = n; | 469 | max = n; |
470 | } | 470 | } |