mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
05c6a8eff6
commit
8b8d08cf29
3 changed files with 3 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue