]> err.no Git - linux-2.6/blobdiff - arch/powerpc/kernel/of_platform.c
[POWERPC] Use dev_set_name in pci_64.c
[linux-2.6] / arch / powerpc / kernel / of_platform.c
index fb698d47082d3d10c17edcdff354ce4f832858b6..e79ad8afda0737fed27aa043fa8ca726b8a5411a 100644 (file)
@@ -275,6 +275,8 @@ static int __devinit of_pci_phb_probe(struct of_device *dev,
 
        /* Scan the bus */
        scan_phb(phb);
+       if (phb->bus == NULL)
+               return -ENXIO;
 
        /* Claim resources. This might need some rework as well depending
         * wether we are doing probe-only or not, like assigning unassigned