summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-11-29 13:17:59 -0700
committerSimon Glass <sjg@chromium.org>2016-01-12 10:19:09 -0700
commit0fe9cb0fbb6214f8931f000b14aa43dab86a84b9 (patch)
treed8b889c1420b4c3657606bde4de13d19ff3d995a /drivers/pci
parent8beb0bda9c59146df70b960ce69ecfbd6f744028 (diff)
downloadu-boot-imx-0fe9cb0fbb6214f8931f000b14aa43dab86a84b9.zip
u-boot-imx-0fe9cb0fbb6214f8931f000b14aa43dab86a84b9.tar.gz
u-boot-imx-0fe9cb0fbb6214f8931f000b14aa43dab86a84b9.tar.bz2
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: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci_common.c b/drivers/pci/pci_common.c
index 2a14902..a4573b0 100644
--- a/drivers/pci/pci_common.c
+++ b/drivers/pci/pci_common.c
@@ -313,6 +313,7 @@ pci_addr_t pci_hose_phys_to_bus(struct pci_controller *hose,
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)
{
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,
return -1;
}
+#endif /* !CONFIG_DM_PCI || CONFIG_DM_PCI_COMPAT */