powerpc/powernv/idoa: Remove unnecessary pcidev from pci_dn
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 23 Oct 2017 08:07:02 +0000 (19:07 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 27 Jan 2018 09:39:01 +0000 (20:39 +1100)
commit902bdc57451c2c64aa139bbe24067f70a186db0a
treeed99d5543498265de270ad04d1fe2ca2dca75561
parent5c8136fa1af7c0e9b4aec89cf2832f6e5197ce32
powerpc/powernv/idoa: Remove unnecessary pcidev from pci_dn

The pcidev value stored in pci_dn is only used for NPU/NPU2
initialization. We can easily drop the cached pointer and
use an ancient helper - pci_get_domain_bus_and_slot() instead in order
to reduce complexity.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Acked-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pci-bridge.h
arch/powerpc/platforms/powernv/npu-dma.c
arch/powerpc/platforms/powernv/pci-ioda.c