diff options
author | Benjamin Herrenschmidt <benh@au1.ibm.com> | 2007-01-11 16:38:22 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-01-22 21:27:35 +1100 |
commit | 4ef6e68117e93111590d9d4ada1a282304241169 (patch) | |
tree | c9954f0620ee45550ef3bae223208fc3939f4e50 | |
parent | a8b3485287731978899ced11f24628c927890e78 (diff) | |
download | linux-stable-4ef6e68117e93111590d9d4ada1a282304241169.tar.gz linux-stable-4ef6e68117e93111590d9d4ada1a282304241169.tar.bz2 linux-stable-4ef6e68117e93111590d9d4ada1a282304241169.zip |
[POWERPC] Remove bogus sanity check in pci -> OF node code
The new implementation of pci_device_to_OF_node() on ppc32 has a bogus
sanity check in it that can cause oopses at boot when no device node is
present, and might hit correct cases with older/weird apple device-trees
where they have the type "vci" for the chaos bridge.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/kernel/pci_32.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index 2847cd51a2d7..c54f3639c5ad 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c @@ -775,11 +775,6 @@ static struct device_node *scan_OF_for_pci_bus(struct pci_bus *bus) np = scan_OF_for_pci_dev(parent, bus->self->devfn); of_node_put(parent); - /* sanity check */ - if (strcmp(np->type, "pci") != 0) - printk(KERN_WARNING "pci: wrong type \"%s\" for bridge %s\n", - np->type, np->full_name); - return np; } |