diff options
author | Hou Zhiqiang | 2019-07-05 11:56:44 +0200 |
---|---|---|
committer | Lorenzo Pieralisi | 2019-07-08 13:28:44 +0200 |
commit | e0a7e56368a4a58488c80693f0b630a0a05f6c8d (patch) | |
tree | 168c92ca08464d5d53e5e7fb38151bb0d958c1d2 /drivers/pci/controller | |
parent | PCI: mobiveil: Refactor the MEM/IO outbound window initialization (diff) | |
download | kernel-qcow2-linux-e0a7e56368a4a58488c80693f0b630a0a05f6c8d.tar.gz kernel-qcow2-linux-e0a7e56368a4a58488c80693f0b630a0a05f6c8d.tar.xz kernel-qcow2-linux-e0a7e56368a4a58488c80693f0b630a0a05f6c8d.zip |
PCI: mobiveil: Fix error return values
Some error return values in the host controller driver are
either unconventional or plain wrong. Update them all with
the expected return values.
Signed-off-by: Hou Zhiqiang <Zhinqiang.Hou@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Minghuan Lian <Minghuan.Lian@nxp.com>
Reviewed-by: Subrahmanya Lingappa <l.subrahmanya@mobiveil.co.in>
Diffstat (limited to 'drivers/pci/controller')
-rw-r--r-- | drivers/pci/controller/pcie-mobiveil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index 965f89ae73d7..51cbe5331343 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -822,7 +822,7 @@ static int mobiveil_pcie_init_irq_domain(struct mobiveil_pcie *pcie) if (!pcie->intx_domain) { dev_err(dev, "Failed to get a INTx IRQ domain\n"); - return -ENODEV; + return -ENOMEM; } raw_spin_lock_init(&pcie->intx_mask_lock); @@ -848,7 +848,7 @@ static int mobiveil_pcie_probe(struct platform_device *pdev) /* allocate the PCIe port */ bridge = devm_pci_alloc_host_bridge(dev, sizeof(*pcie)); if (!bridge) - return -ENODEV; + return -ENOMEM; pcie = pci_host_bridge_priv(bridge); if (!pcie) @@ -869,7 +869,7 @@ static int mobiveil_pcie_probe(struct platform_device *pdev) &pcie->resources, &iobase); if (ret) { dev_err(dev, "Getting bridge resources failed\n"); - return -ENOMEM; + return ret; } /* |