Re: powerpc/kernel: Change retrieval of pci_dn
From: Michael Ellerman <hidden>
Date: 2017-08-31 11:36:30
From: Michael Ellerman <hidden>
Date: 2017-08-31 11:36:30
On Tue, 2017-08-29 at 13:11:51 UTC, "Bryant G. Ly" wrote:
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 <redacted> Reviewed-by: Sam Bobroff <redacted>
Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/f9df74dfce542ad2aea2e601ef1a12 cheers