summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2018-04-04 20:28:56 +0200
committerBjorn Helgaas <helgaas@kernel.org>2018-04-04 20:28:56 +0200
commitd2f48c5d7fd791104f3227d8e6b55fca892eb2ba (patch)
tree6baede90b42a2481bcabe972e5e505f4cec4ea3c /drivers/pci
parentMerge branch 'lorenzo/pci/tegra' (diff)
parentPCI: xgene: Fix the xgene_msi_probe() return code (diff)
downloadlinux-d2f48c5d7fd791104f3227d8e6b55fca892eb2ba.tar.xz
linux-d2f48c5d7fd791104f3227d8e6b55fca892eb2ba.zip
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;