commit | f9df74dfce542ad2aea2e601ef1a1281e01fad6a | [log] [tgz] |
---|---|---|
author | Bryant G. Ly <bryantly@linux.vnet.ibm.com> | Tue Aug 29 08:11:51 2017 -0500 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Thu Aug 31 14:26:40 2017 +1000 |
tree | cdb7211e8e7351715492b86003a9f891e6bd7036 | |
parent | 22259a6e800cdb8e06e65432fcd019983214be0c [diff] |
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>