diff options
| author | Alex Williamson <alex.williamson@redhat.com> | 2025-02-25 14:52:28 -0700 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-03-06 06:47:33 +0100 |
| commit | 8b8d08cf293b930d0f55b2d5385d8dd27e0c6b41 (patch) | |
| tree | 1bb1fc4a037d4951f1b7c52c306fbc9e55c170e2 /hw/pci-bridge/pcie_pci_bridge.c | |
| parent | 05c6a8eff6298675080aa2692ee05a310b3483b4 (diff) | |
| download | focaccia-qemu-8b8d08cf293b930d0f55b2d5385d8dd27e0c6b41.tar.gz focaccia-qemu-8b8d08cf293b930d0f55b2d5385d8dd27e0c6b41.zip | |
pcie, virtio: Remove redundant pm_cap
The pm_cap on the PCIExpressDevice object can be distilled down to the new instance on the PCIDevice object. Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Link: https://lore.kernel.org/qemu-devel/20250225215237.3314011-5-alex.williamson@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/pci-bridge/pcie_pci_bridge.c')
| -rw-r--r-- | hw/pci-bridge/pcie_pci_bridge.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/pci-bridge/pcie_pci_bridge.c b/hw/pci-bridge/pcie_pci_bridge.c index 9fa656b43b..2429503cfb 100644 --- a/hw/pci-bridge/pcie_pci_bridge.c +++ b/hw/pci-bridge/pcie_pci_bridge.c @@ -56,7 +56,6 @@ static void pcie_pci_bridge_realize(PCIDevice *d, Error **errp) if (pos < 0) { goto pm_error; } - d->exp.pm_cap = pos; pci_set_word(d->config + pos + PCI_PM_PMC, 0x3); pcie_cap_arifwd_init(d); |