powerpc/pci: Add pci_find_controller_for_domain()
authorOliver O'Halloran <oohall@gmail.com>
Fri, 15 Feb 2019 00:48:15 +0000 (11:48 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Feb 2019 13:10:14 +0000 (00:10 +1100)
commit67060cb1ffa474c4fa1ae4db865ac1c7ed1fa899
tree79d761c5be8591c0c680f8383a89a886bcbfadbc
parentc8f02f2108136a6218326fbcd4034b985849667c
powerpc/pci: Add pci_find_controller_for_domain()

Add a helper to find the pci_controller structure based on the domain
number / phb id.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pci-bridge.h
arch/powerpc/kernel/pci-common.c