diff options
Diffstat (limited to 'arch/powerpc/platforms/powermac/pci.c')
-rw-r--r-- | arch/powerpc/platforms/powermac/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powermac/pci.c b/arch/powerpc/platforms/powermac/pci.c index 443be526cde7..e0b66f55a5f8 100644 --- a/arch/powerpc/platforms/powermac/pci.c +++ b/arch/powerpc/platforms/powermac/pci.c | |||
@@ -326,7 +326,7 @@ static int u3_ht_skip_device(struct pci_controller *hose, | |||
326 | else | 326 | else |
327 | busdn = hose->arch_data; | 327 | busdn = hose->arch_data; |
328 | for (dn = busdn->child; dn; dn = dn->sibling) | 328 | for (dn = busdn->child; dn; dn = dn->sibling) |
329 | if (dn->data && PCI_DN(dn)->devfn == devfn) | 329 | if (PCI_DN(dn) && PCI_DN(dn)->devfn == devfn) |
330 | break; | 330 | break; |
331 | if (dn == NULL) | 331 | if (dn == NULL) |
332 | return -1; | 332 | return -1; |