diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-17 14:51:55 -0700 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-01-28 12:32:44 -0600 |
commit | dfa71e9fcbb142d3cf253054f83e4a4b4ea63f94 (patch) | |
tree | 1a6c76b906513e0758123144d33cb6d636ccc17f /drivers/pci | |
parent | 6968ec921634b69f700f3e4ccdc35527160ac77a (diff) | |
download | u-boot-dfa71e9fcbb142d3cf253054f83e4a4b4ea63f94.zip u-boot-dfa71e9fcbb142d3cf253054f83e4a4b4ea63f94.tar.gz u-boot-dfa71e9fcbb142d3cf253054f83e4a4b4ea63f94.tar.bz2 |
tegra: Report errors from PCI init
This function can fail, so be sure to report any errors that occur.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci_tegra.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |