Explorar o código

Merge branch 'lorenzo/pci/xgene'

* lorenzo/pci/xgene:
  PCI: xgene: Fix the xgene_msi_probe() return code
Bjorn Helgaas %!s(int64=7) %!d(string=hai) anos
pai
achega
d2f48c5d7f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/pci/host/pci-xgene-msi.c

+ 1 - 1
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;