]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Don't use pe->pbus to get the domain number
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 24 Apr 2014 08:00:29 +0000 (18:00 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 07:35:14 +0000 (17:35 +1000)
commitd141aa6c4fb83558126753b090c65c3a66119fd0
tree6c1af7a6477408ed8a7d46c088edeca16a720487
parent77501dd144100f123c971258a80f209877b82c55
powerpc/powernv: Don't use pe->pbus to get the domain number

If the PE contains single PCI function, "pe->pbus" would be NULL.
It's not reliable to be used by pci_domain_nr().  We just grab the
PCI domain number from the PCI host controller (struct pci_controller)
instance.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/pci-ioda.c