mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-28 16:27:01 +00:00
HV: remove unused function find_pci_pdev
find_pci_pdev is not used any more, remove it. Tracked-On: #3241 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
ad6f54b99a
commit
c61ea3b5af
@ -394,18 +394,3 @@ static void init_pdev(uint16_t pbdf)
|
||||
pr_err("%s, failed to alloc pci_pdev!\n", __func__);
|
||||
}
|
||||
}
|
||||
|
||||
struct pci_pdev *find_pci_pdev(union pci_bdf pbdf)
|
||||
{
|
||||
struct pci_pdev *pdev = NULL;
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0U; i < num_pci_pdev; i++) {
|
||||
if (bdf_is_equal(&pci_pdev_array[i].bdf, &pbdf)) {
|
||||
pdev = &pci_pdev_array[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return pdev;
|
||||
}
|
||||
|
@ -252,7 +252,6 @@ uint32_t pci_pdev_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes);
|
||||
void pci_pdev_write_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val);
|
||||
void enable_disable_pci_intx(union pci_bdf bdf, bool enable);
|
||||
|
||||
struct pci_pdev *find_pci_pdev(union pci_bdf pbdf);
|
||||
void init_pci_pdev_list(void);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user