[U-Boot] [PATCH 1/8] tegra: Report errors from PCI init

Simon Glass sjg at chromium.org
Sun Jan 17 22:51:55 CET 2016


This function can fail, so be sure to report any errors that occur.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/pci/pci_tegra.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/pci_tegra.c b/drivers/pci/pci_tegra.c
index 5a7fefe..5dadf6f 100644
--- a/drivers/pci/pci_tegra.c
+++ b/drivers/pci/pci_tegra.c
@@ -465,7 +465,11 @@ static int tegra_pcie_parse_dt(const void *fdt, int node, enum tegra_pci_id id,
 		return err;
 	}
 
-	tegra_pcie_board_init();
+	err = tegra_pcie_board_init();
+	if (err < 0) {
+		error("tegra_pcie_board_init() failed: err=%d", err);
+		return err;
+	}
 
 	pcie->phy = tegra_xusb_phy_get(TEGRA_XUSB_PADCTL_PCIE);
 	if (pcie->phy) {
-- 
2.6.0.rc2.230.g3dd15c0



More information about the U-Boot mailing list