提交 e5942338 编写于 作者: W Wei Yongjun 提交者: Bjorn Helgaas

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: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
上级 1001354c
...@@ -251,10 +251,8 @@ static int __init ls_pcie_probe(struct platform_device *pdev) ...@@ -251,10 +251,8 @@ static int __init ls_pcie_probe(struct platform_device *pdev)
dbi_base = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs"); dbi_base = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
pcie->pp.dbi_base = devm_ioremap_resource(dev, dbi_base); pcie->pp.dbi_base = devm_ioremap_resource(dev, dbi_base);
if (IS_ERR(pcie->pp.dbi_base)) { if (IS_ERR(pcie->pp.dbi_base))
dev_err(dev, "missing *regs* space\n");
return PTR_ERR(pcie->pp.dbi_base); return PTR_ERR(pcie->pp.dbi_base);
}
pcie->drvdata = match->data; pcie->drvdata = match->data;
pcie->lut = pcie->pp.dbi_base + pcie->drvdata->lut_offset; pcie->lut = pcie->pp.dbi_base + pcie->drvdata->lut_offset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册