Commit e097ce4304056452704f54245e28a6badb59fe06

Authored by Mario Six
Committed by Tom Rini
1 parent 86da8c12ef

pci: Don't use pci_indirect when DM is active

Declaration of indirect PCI bridges is not compatible with DM: Both
define PCI operations, but in different ways. Hence, don't use indirect
bridges if DM is active.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/pci/pci_indirect.c
... ... @@ -7,7 +7,7 @@
7 7  
8 8 #include <common.h>
9 9  
10   -#if !defined(__I386__)
  10 +#if !defined(__I386__) && !defined(CONFIG_DM_PCI)
11 11  
12 12 #include <asm/processor.h>
13 13 #include <asm/io.h>