Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5942338 authored by Wei Yongjun's avatar Wei Yongjun Committed by Bjorn Helgaas
Browse files

PCI: layerscape: Remove redundant error message from ls_pcie_probe()



There is an error message from devm_ioremap_resource() already, so remove
the dev_err() call to avoid redundant error messages.

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 1001354c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -251,10 +251,8 @@ static int __init ls_pcie_probe(struct platform_device *pdev)

	dbi_base = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
	pcie->pp.dbi_base = devm_ioremap_resource(dev, dbi_base);
	if (IS_ERR(pcie->pp.dbi_base)) {
		dev_err(dev, "missing *regs* space\n");
	if (IS_ERR(pcie->pp.dbi_base))
		return PTR_ERR(pcie->pp.dbi_base);
	}

	pcie->drvdata = match->data;
	pcie->lut = pcie->pp.dbi_base + pcie->drvdata->lut_offset;