Commit dfa71e9f authored by Simon Glass's avatar Simon Glass Committed by Joe Hershberger
Browse files

tegra: Report errors from PCI init



This function can fail, so be sure to report any errors that occur.
Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
parent 6968ec92
...@@ -465,7 +465,11 @@ static int tegra_pcie_parse_dt(const void *fdt, int node, enum tegra_pci_id id, ...@@ -465,7 +465,11 @@ static int tegra_pcie_parse_dt(const void *fdt, int node, enum tegra_pci_id id,
return err; 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); pcie->phy = tegra_xusb_phy_get(TEGRA_XUSB_PADCTL_PCIE);
if (pcie->phy) { if (pcie->phy) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment