diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-10-17 10:55:40 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-11-11 16:39:10 -0500 |
commit | e594233803aa9bff9ee6912b7b07db2c7898a06c (patch) | |
tree | a6c2469af3b3a2f112e872a6ef1a3b02bf5019e8 | |
parent | 1001354ca34179f3db924eb66672442a173147dc (diff) |
PCI: layerscape: Remove redundant error message from ls_pcie_probe()
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>
-rw-r--r-- | drivers/pci/host/pci-layerscape.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c index 2cb7315e26d0..bbd3d232b934 100644 --- a/drivers/pci/host/pci-layerscape.c +++ b/drivers/pci/host/pci-layerscape.c | |||
@@ -251,10 +251,8 @@ static int __init ls_pcie_probe(struct platform_device *pdev) | |||
251 | 251 | ||
252 | dbi_base = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs"); | 252 | dbi_base = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs"); |
253 | pcie->pp.dbi_base = devm_ioremap_resource(dev, dbi_base); | 253 | pcie->pp.dbi_base = devm_ioremap_resource(dev, dbi_base); |
254 | if (IS_ERR(pcie->pp.dbi_base)) { | 254 | if (IS_ERR(pcie->pp.dbi_base)) |
255 | dev_err(dev, "missing *regs* space\n"); | ||
256 | return PTR_ERR(pcie->pp.dbi_base); | 255 | return PTR_ERR(pcie->pp.dbi_base); |
257 | } | ||
258 | 256 | ||
259 | pcie->drvdata = match->data; | 257 | pcie->drvdata = match->data; |
260 | pcie->lut = pcie->pp.dbi_base + pcie->drvdata->lut_offset; | 258 | pcie->lut = pcie->pp.dbi_base + pcie->drvdata->lut_offset; |