]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PCI: layerscape: Remove redundant error message from ls_pcie_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 14:55:40 +0000 (14:55 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 11 Nov 2016 21:39:10 +0000 (15:39 -0600)
There is an error message from devm_ioremap_resource() already, so remove
the dev_err() call to avoid redundant error messages.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-layerscape.c

index 2cb7315e26d089701679e23a7fc3f8a9ce74e4cf..bbd3d232b934b4cf1ce07330cf2d7fc20e109754 100644 (file)
@@ -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;