From: Simon Glass Date: Sun, 17 Jan 2016 21:51:55 +0000 (-0700) Subject: tegra: Report errors from PCI init X-Git-Tag: v2016.03-rc1~42^2~14 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dfa71e9fcbb142d3cf253054f83e4a4b4ea63f94;p=oweals%2Fu-boot.git tegra: Report errors from PCI init This function can fail, so be sure to report any errors that occur. Signed-off-by: Simon Glass Reviewed-by: Joe Hershberger --- diff --git a/drivers/pci/pci_tegra.c b/drivers/pci/pci_tegra.c index 5a7fefed5e..5dadf6fa62 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) {