diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-02 03:54:19 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-08-05 23:14:36 +0300 |
commit | 26221dc35c94febd5c0b1400bc307b8f1d6494a5 (patch) | |
tree | 1fba5a10ebb3795e32b20fbd3f928fc20b172f31 /drivers/pci | |
parent | e8c09d690be5bbaddd890859c2a00d9a6e6bd944 (diff) | |
download | u-boot-26221dc35c94febd5c0b1400bc307b8f1d6494a5.tar.xz |
pci: Drop DM_PCI check from pci_common
We don't need this check anymore since when PCI is enabled, driver model
is always used.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci_common.c b/drivers/pci/pci_common.c index 5231b69dc9..02a71da30f 100644 --- a/drivers/pci/pci_common.c +++ b/drivers/pci/pci_common.c @@ -99,7 +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) +#if 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) { @@ -361,4 +361,4 @@ pci_dev_t pci_find_class(uint find_class, int index) return -ENODEV; } -#endif /* !CONFIG_DM_PCI || CONFIG_DM_PCI_COMPAT */ +#endif /* CONFIG_DM_PCI_COMPAT */ |