diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2018-04-04 13:28:56 -0500 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-04-04 13:28:56 -0500 |
commit | d2f48c5d7fd791104f3227d8e6b55fca892eb2ba (patch) | |
tree | 6baede90b42a2481bcabe972e5e505f4cec4ea3c /drivers/pci | |
parent | 34fe07b11dbf8d2a4d3676c8f7b1de7d1092bb9f (diff) | |
parent | 1736353f17e10bee352ec690757c66b568140724 (diff) | |
download | linux-d2f48c5d7fd791104f3227d8e6b55fca892eb2ba.tar.bz2 |
Merge branch 'lorenzo/pci/xgene'
* lorenzo/pci/xgene:
PCI: xgene: Fix the xgene_msi_probe() return code
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/host/pci-xgene-msi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pci-xgene-msi.c b/drivers/pci/host/pci-xgene-msi.c index df8e4bd5ddb2..f4c02da84e59 100644 --- a/drivers/pci/host/pci-xgene-msi.c +++ b/drivers/pci/host/pci-xgene-msi.c @@ -456,7 +456,7 @@ static int xgene_msi_probe(struct platform_device *pdev) xgene_msi->msi_regs = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(xgene_msi->msi_regs)) { dev_err(&pdev->dev, "no reg space\n"); - rc = -EINVAL; + rc = PTR_ERR(xgene_msi->msi_regs); goto error; } xgene_msi->msi_addr = res->start; |