From 06dfaeef52a5f773ae4292432e3c74ff52ead316 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Fri, 2 Oct 2009 14:35:16 +0200 Subject: 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 Acked-by: Wolfgang Denk --- board/amcc/katmai/katmai.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board/amcc/katmai/katmai.c') diff --git a/board/amcc/katmai/katmai.c b/board/amcc/katmai/katmai.c index bcef707..aa6d0ab 100644 --- a/board/amcc/katmai/katmai.c +++ b/board/amcc/katmai/katmai.c @@ -32,6 +32,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -391,6 +392,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"); -- cgit v1.1