git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
arch
/
ppc64
/
kernel
/
pci_dn.c
diff --git
a/arch/ppc64/kernel/pci_dn.c
b/arch/ppc64/kernel/pci_dn.c
index
c771bdc
..
2ef21d7
100644
(file)
--- a/
arch/ppc64/kernel/pci_dn.c
+++ b/
arch/ppc64/kernel/pci_dn.c
@@
-129,10
+129,10
@@
void *traverse_pci_devices(struct device_node *start, traverse_func pre,
*/
static void *traverse_all_pci_devices(traverse_func pre)
{
*/
static void *traverse_all_pci_devices(traverse_func pre)
{
- struct pci_controller *phb;
+ struct pci_controller *phb
, *tmp
;
void *ret;
void *ret;
-
for (phb = hose_head; phb; phb = phb->next
)
+
list_for_each_entry_safe(phb, tmp, &hose_list, list_node
)
if ((ret = traverse_pci_devices(phb->arch_data, pre, phb))
!= NULL)
return ret;
if ((ret = traverse_pci_devices(phb->arch_data, pre, phb))
!= NULL)
return ret;