summaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pci-aardvark.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-07-28 18:17:14 +0200
committerBjorn Helgaas <bhelgaas@google.com>2016-08-22 21:36:50 +0200
commit8b22335afe75bccbef65fac6d4714dd1f5ebd1bd (patch)
treeb9f4a78f13219be8103f0b9415491bedecc578f2 /drivers/pci/host/pci-aardvark.c
parentLinux 4.8-rc1 (diff)
downloadlinux-8b22335afe75bccbef65fac6d4714dd1f5ebd1bd.tar.xz
linux-8b22335afe75bccbef65fac6d4714dd1f5ebd1bd.zip
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: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'drivers/pci/host/pci-aardvark.c')
-rw-r--r--drivers/pci/host/pci-aardvark.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/host/pci-aardvark.c b/drivers/pci/host/pci-aardvark.c
index ef9893fa3176..05c33b50b218 100644
--- a/drivers/pci/host/pci-aardvark.c
+++ b/drivers/pci/host/pci-aardvark.c
@@ -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,