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

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

PCI: aardvark: Remove redundant dev_err call in advk_pcie_probe()



devm_ioremap_resource() emits an error message already, so remove the
dev_err() call in advk_pcie_probe() to avoid redundant error messages.

Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 29b4817d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -925,10 +925,8 @@ static int advk_pcie_probe(struct platform_device *pdev)

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	pcie->base = devm_ioremap_resource(&pdev->dev, res);
	if (IS_ERR(pcie->base)) {
		dev_err(&pdev->dev, "Failed to map registers\n");
	if (IS_ERR(pcie->base))
		return PTR_ERR(pcie->base);
	}

	irq = platform_get_irq(pdev, 0);
	ret = devm_request_irq(&pdev->dev, irq, advk_pcie_irq_handler,