[RFC/PATCH 8/10] powerpc: Merge PCI resource fixups
Stephen Rothwell
sfr at canb.auug.org.au
Thu Dec 6 22:51:21 EST 2007
On Thu, 06 Dec 2007 19:11:36 +1100 Benjamin Herrenschmidt <benh at kernel.crashing.org> wrote:
>
> @@ -316,19 +313,26 @@ void __devinit of_scan_bus(struct device
> dev = of_create_pci_dev(child, bus, devfn);
> if (!dev)
> continue;
> - DBG("dev header type: %x\n", dev->hdr_type);
> + DBG(" dev header type: %x\n", dev->hdr_type);
> + }
> +
> + /* Ally all fixups */
> + pcibios_fixup_of_probed_bus(bus);
>
> + /* Now scan child busses */
> + list_for_each_entry(dev, &bus->devices, bus_list) {
> if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE ||
> - dev->hdr_type == PCI_HEADER_TYPE_CARDBUS)
> - of_scan_pci_bridge(child, dev);
> + dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) {
> + struct device_node *child = pci_device_to_OF_node(dev);
> + if (dev)
^^^
child?
> + of_scan_pci_bridge(child, dev);
> + }
> }
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20071206/9e1e724d/attachment.pgp>
More information about the Linuxppc-dev
mailing list