diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2011-01-27 15:56:36 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-03-28 18:34:22 +0200 |
commit | 5256d8bfad9b0113dc2f9b57706eaad26b008987 (patch) | |
tree | 8bb9ff38185905500774ea5040e5de1537e36f28 /hw/pcie_host.c | |
parent | 90a20dbb2837f5ff05a9b19659ba1aa218cbd2de (diff) |
pci: use devfn for pci_find_device() instead of (slot, fn) pair
(slot, fn) pair is somewhat confusing because of ARI.
So use devfn for pci_find_device() instead of (slot, fn).
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pcie_host.c')
-rw-r--r-- | hw/pcie_host.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/pcie_host.c b/hw/pcie_host.c index 21069eed83..b7498656f2 100644 --- a/hw/pcie_host.c +++ b/hw/pcie_host.c @@ -49,8 +49,7 @@ static inline PCIDevice *pcie_dev_find_by_mmcfg_addr(PCIBus *s, uint32_t mmcfg_addr) { return pci_find_device(s, PCIE_MMCFG_BUS(mmcfg_addr), - PCI_SLOT(PCIE_MMCFG_DEVFN(mmcfg_addr)), - PCI_FUNC(PCIE_MMCFG_DEVFN(mmcfg_addr))); + PCIE_MMCFG_DEVFN(mmcfg_addr)); } static void pcie_mmcfg_data_write(PCIBus *s, |