]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cpu/ppc4xx/4xx_pcie.c
ppc4xx: Fix msg "initialization as root-complex failed" upon PCIe scan
[people/ms/u-boot.git] / cpu / ppc4xx / 4xx_pcie.c
index e880c288e1f2e2e01e700034639ab607d4b3110d..19d2c7dd2f46affa43e2f64c98bf30a5c62b85d7 100644 (file)
@@ -30,6 +30,7 @@
 #include <ppc4xx.h>
 #include <asm/processor.h>
 #include <asm-ppc/io.h>
+#include <asm/errno.h>
 
 #if (defined(CONFIG_440SPE) || defined(CONFIG_405EX) ||        \
     defined(CONFIG_460EX) || defined(CONFIG_460GT)) && \
@@ -874,7 +875,7 @@ int ppc4xx_init_pcie_port(int port, int rootport)
        val = SDR_READ(SDRN_PESDR_LOOP(port));
        if (!(val & 0x00001000)) {
                printf("PCIE%d: link is not up.\n", port);
-               return -1;
+               return -ENODEV;
        }
 
        /*