summaryrefslogtreecommitdiff
path: root/board/amcc/canyonlands
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 /board/amcc/canyonlands
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 'board/amcc/canyonlands')
-rw-r--r--board/amcc/canyonlands/canyonlands.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/amcc/canyonlands/canyonlands.c b/board/amcc/canyonlands/canyonlands.c
index f359d23..9495b62 100644
--- a/board/amcc/canyonlands/canyonlands.c
+++ b/board/amcc/canyonlands/canyonlands.c
@@ -28,6 +28,7 @@
#include <asm/mmu.h>
#include <asm/4xx_pcie.h>
#include <asm/gpio.h>
+#include <asm/errno.h>
extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
@@ -414,6 +415,8 @@ void pcie_setup_hoses(int busno)
ret = ppc4xx_init_pcie_endport(i);
else
ret = ppc4xx_init_pcie_rootport(i);
+ if (ret == -ENODEV)
+ continue;
if (ret) {
printf("PCIE%d: initialization as %s failed\n", i,
is_end_point(i) ? "endpoint" : "root-complex");