diff options
author | Simon Glass <sjg@chromium.org> | 2015-11-29 13:18:05 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-12 10:19:09 -0700 |
commit | 7e78b9ef2c9f263214adf7e2f7be9912a1af564b (patch) | |
tree | 8fb74bbd1beed74d6a268e8a277194cf8586b4b1 /drivers/pci/pci_common.c | |
parent | 552ddbe3ceaae1346b6f223248141b846afc6c80 (diff) | |
download | u-boot-imx-7e78b9ef2c9f263214adf7e2f7be9912a1af564b.zip u-boot-imx-7e78b9ef2c9f263214adf7e2f7be9912a1af564b.tar.gz u-boot-imx-7e78b9ef2c9f263214adf7e2f7be9912a1af564b.tar.bz2 |
dm: pci: Switch to DM API for PCI address mapping
We should use the new address mapping functions unless we are in
compatibility mode. Disable the old functions by default.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/pci/pci_common.c')
-rw-r--r-- | drivers/pci/pci_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci_common.c b/drivers/pci/pci_common.c index b388a1c..1755914 100644 --- a/drivers/pci/pci_common.c +++ b/drivers/pci/pci_common.c @@ -99,6 +99,7 @@ __weak int pci_skip_dev(struct pci_controller *hose, pci_dev_t dev) return 0; } +#if !defined(CONFIG_DM_PCI) || defined(CONFIG_DM_PCI_COMPAT) /* Get a virtual address associated with a BAR region */ void *pci_map_bar(pci_dev_t pdev, int bar, int flags) { @@ -271,7 +272,6 @@ 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} }; |