summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-10-02 14:35:16 +0200
committerStefan Roese <sr@denx.de>2009-10-07 09:13:46 +0200
commit06dfaeef52a5f773ae4292432e3c74ff52ead316 (patch)
tree90a3e2c700aabead7e4b637a4cd9572005f260fd /cpu
parent54f5f056aa1daa3e39bad1c5c3fb43a72cdb9e84 (diff)
downloadu-boot-imx-06dfaeef52a5f773ae4292432e3c74ff52ead316.zip
u-boot-imx-06dfaeef52a5f773ae4292432e3c74ff52ead316.tar.gz
u-boot-imx-06dfaeef52a5f773ae4292432e3c74ff52ead316.tar.bz2
ppc4xx: Fix msg "initialization as root-complex failed" upon PCIe scan
This message is printed upon PCIe bus scan, not only upon error, but also if no PCIe device is detected at all. Since this is not an error, let's remove this message in this case. We already have the message "link is not up." if there is no PCIe device present. Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/ppc4xx/4xx_pcie.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/ppc4xx/4xx_pcie.c b/cpu/ppc4xx/4xx_pcie.c
index e880c28..19d2c7d 100644
--- a/cpu/ppc4xx/4xx_pcie.c
+++ b/cpu/ppc4xx/4xx_pcie.c
@@ -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;
}
/*