summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2018-04-04 13:28:56 -0500
committerBjorn Helgaas <helgaas@kernel.org>2018-04-04 13:28:56 -0500
commitd2f48c5d7fd791104f3227d8e6b55fca892eb2ba (patch)
tree6baede90b42a2481bcabe972e5e505f4cec4ea3c /drivers/pci
parent34fe07b11dbf8d2a4d3676c8f7b1de7d1092bb9f (diff)
parent1736353f17e10bee352ec690757c66b568140724 (diff)
downloadlinux-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.c2
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;