PCI: aardvark: Simplify initialization of rootcap on virtual bridge
authorPali Rohár <pali@kernel.org>
Tue, 5 Oct 2021 18:09:49 +0000 (20:09 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 7 Oct 2021 13:27:59 +0000 (14:27 +0100)
commit454c53271fc11f3aa5e44e41fd99ca181bd32c62
tree35cf8171e4bd3934946c14713658dba75979be61
parent223dec14a05337a4155f1deed46d2becce4d00fd
PCI: aardvark: Simplify initialization of rootcap on virtual bridge

PCIe config space can be initialized also before pci_bridge_emul_init()
call, so move rootcap initialization after PCI config space initialization.

This simplifies the function a little since it removes one if (ret < 0)
check.

Link: https://lore.kernel.org/r/20211005180952.6812-11-kabel@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Marek Behún <kabel@kernel.org>
drivers/pci/controller/pci-aardvark.c