瀏覽代碼

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>
Mario Six 7 年之前
父節點
當前提交
e097ce4304
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/pci/pci_indirect.c

+ 1 - 1
drivers/pci/pci_indirect.c

@@ -7,7 +7,7 @@
 
 #include <common.h>
 
-#if !defined(__I386__)
+#if !defined(__I386__) && !defined(CONFIG_DM_PCI)
 
 #include <asm/processor.h>
 #include <asm/io.h>