From: Mario Six Date: Fri, 27 Apr 2018 14:53:37 +0200 Subject: [U-Boot] [PATCH v2 1/3] pci: Don't use pci_indirect when DM is active Message-ID: <20180427125339.1308-1-mario.six@gdsys.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Reviewed-by: Simon Glass --- v1 -> v2: No changes --- drivers/pci/pci_indirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci_indirect.c b/drivers/pci/pci_indirect.c index 4a36749aa4..2db73f92de 100644 --- a/drivers/pci/pci_indirect.c +++ b/drivers/pci/pci_indirect.c @@ -8,7 +8,7 @@ #include -#if !defined(__I386__) +#if !defined(__I386__) && !defined(CONFIG_DM_PCI) #include #include -- 2.16.1