]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PCI: aardvark: Remove redundant dev_err call in advk_pcie_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Thu, 28 Jul 2016 16:17:14 +0000 (16:17 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 22 Aug 2016 19:36:50 +0000 (14:36 -0500)
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>
drivers/pci/host/pci-aardvark.c

index ef9893fa3176d2db4579bf809998bd1c97d073db..05c33b50b21898459509a6226a66cadbedd58901 100644 (file)
@@ -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,