On Fri, 2010-12-17 at 16:33 +0100, Sebastian Andrzej Siewior wrote:
I'd like it better if instead you added pci_bus_to_OF_node() to ppc32
and microblaze.
The easy way to do so is to do:
struct pci_controller *host;
if (bus->self)
return pci_device_to_OF_node(bus->self);
host = pci_bus_to_host(pdev->bus);
return host ? host->dn : NULL;
Cheers,
Ben.
--