powerpc/kernel: Change retrieval of pci_dn
authorBryant G. Ly <bryantly@linux.vnet.ibm.com>
Tue, 29 Aug 2017 13:11:51 +0000 (08:11 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 31 Aug 2017 04:26:40 +0000 (14:26 +1000)
commitf9df74dfce542ad2aea2e601ef1a1281e01fad6a
treecdb7211e8e7351715492b86003a9f891e6bd7036
parent22259a6e800cdb8e06e65432fcd019983214be0c
powerpc/kernel: Change retrieval of pci_dn

For a PCI device it's pci_dn can be retrieved from
pdev->dev.archdata.firmware_data, PCI_DN(devnode), or parent's list.
Thus, we should just use the existing function pci_get_pdn_by_devfn
to get the pci_dn.

Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Reviewed-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/rtas_pci.c