Skip to content
Snippets Groups Projects
Commit 0fe9cb0f authored by Simon Glass's avatar Simon Glass
Browse files

dm: pci: Drop the old version of pci_find_device/s()


Move these functions into the compatibility file so that they are not
available by default.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 8beb0bda
No related branches found
No related tags found
No related merge requests found
...@@ -313,6 +313,7 @@ pci_addr_t pci_hose_phys_to_bus(struct pci_controller *hose, ...@@ -313,6 +313,7 @@ pci_addr_t pci_hose_phys_to_bus(struct pci_controller *hose,
return bus_addr; return bus_addr;
} }
#if !defined(CONFIG_DM_PCI) || defined(CONFIG_DM_PCI_COMPAT)
pci_dev_t pci_find_device(unsigned int vendor, unsigned int device, int index) pci_dev_t pci_find_device(unsigned int vendor, unsigned int device, int index)
{ {
struct pci_device_id ids[2] = { {}, {0, 0} }; struct pci_device_id ids[2] = { {}, {0, 0} };
...@@ -363,3 +364,4 @@ pci_dev_t pci_hose_find_devices(struct pci_controller *hose, int busnum, ...@@ -363,3 +364,4 @@ pci_dev_t pci_hose_find_devices(struct pci_controller *hose, int busnum,
return -1; return -1;
} }
#endif /* !CONFIG_DM_PCI || CONFIG_DM_PCI_COMPAT */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment