diff --git a/include/spdk/env.h b/include/spdk/env.h index d68fb7093..e735d80d9 100644 --- a/include/spdk/env.h +++ b/include/spdk/env.h @@ -600,17 +600,6 @@ int spdk_pci_ioat_enumerate(spdk_pci_enum_cb enum_cb, void *enum_ctx); */ int spdk_pci_virtio_enumerate(spdk_pci_enum_cb enum_cb, void *enum_ctx); -/** - * Get PCI device from the given address. - * - * \param pci_addr A pointer to the PCI address struct. - * - * \return a pointer to the PCI device or NULL if no devide is found at the given - * address. - */ -struct spdk_pci_device *spdk_pci_get_device(struct spdk_pci_addr *pci_addr) -__attribute__((deprecated)); - /** * Get a mapping of the virtual address to the BAR of the PCI device. * diff --git a/lib/env_dpdk/pci.c b/lib/env_dpdk/pci.c index a9e51e9a9..2fbf3a292 100644 --- a/lib/env_dpdk/pci.c +++ b/lib/env_dpdk/pci.c @@ -207,12 +207,6 @@ spdk_pci_enumerate(struct spdk_pci_enum_ctx *ctx, return 0; } -struct spdk_pci_device * -spdk_pci_get_device(struct spdk_pci_addr *pci_addr) -{ - return NULL; -} - int spdk_pci_device_map_bar(struct spdk_pci_device *device, uint32_t bar, void **mapped_addr, uint64_t *phys_addr, uint64_t *size)