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

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
...@@ -925,10 +925,8 @@ static int advk_pcie_probe(struct platform_device *pdev) ...@@ -925,10 +925,8 @@ static int advk_pcie_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
pcie->base = devm_ioremap_resource(&pdev->dev, res); pcie->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(pcie->base)) { if (IS_ERR(pcie->base))
dev_err(&pdev->dev, "Failed to map registers\n");
return PTR_ERR(pcie->base); return PTR_ERR(pcie->base);
}
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
ret = devm_request_irq(&pdev->dev, irq, advk_pcie_irq_handler, ret = devm_request_irq(&pdev->dev, irq, advk_pcie_irq_handler,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment