PCI: mvebu: Use child_ops API
authorPali Rohár <pali@kernel.org>
Tue, 22 Feb 2022 15:50:26 +0000 (16:50 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 22 Feb 2022 16:04:20 +0000 (16:04 +0000)
commitc099c2a7618536edc28ab86fc171e96c4c1b22bb
tree9f2610d0b1d90b568c55d026865822924f1d0269
parent2b6ee04c0aa6cfff87bdf71b47b78fa26ad54afd
PCI: mvebu: Use child_ops API

Split struct pci_ops between ops and child_ops. Member ops is used for
accessing PCIe Root Ports via pci-bridge-emul.c driver and child_ops for
accessing real PCIe cards.

There is no need to mix these two struct pci_ops into one as PCI core code
already provides separate callbacks via bridge->ops and bridge->child_ops.

Link: https://lore.kernel.org/r/20220222155030.988-9-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-mvebu.c