summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie-designware-host.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pcie-designware-host.c')
-rw-r--r--drivers/pci/pcie-designware-host.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/pci/pcie-designware-host.c b/drivers/pci/pcie-designware-host.c
index 5de9cd8ea3..e98560818c 100644
--- a/drivers/pci/pcie-designware-host.c
+++ b/drivers/pci/pcie-designware-host.c
@@ -164,8 +164,11 @@ int __init dw_pcie_host_init(struct pcie_port *pp)
if (ret)
pci->num_viewport = 2;
- if (pp->ops->host_init)
- pp->ops->host_init(pp);
+ if (pp->ops->host_init) {
+ ret = pp->ops->host_init(pp);
+ if (ret)
+ return ret;
+ }
pp->pci.parent = dev;
pp->pci.pci_ops = &dw_pcie_ops;