PCI: controller: Remove duplicate error message
devm_pci_remap_cfg_resource() will print an error message by itself when goes wrong, so remove the duplicate error message. Link: https://lore.kernel.org/r/20200526150954.4729-1-zhengdejin5@gmail.com Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Rob Herring <robh@kernel.org>
This commit is contained in:

committed by
Lorenzo Pieralisi

parent
3cf0eead9f
commit
da30e8bc9a
@@ -67,13 +67,8 @@ static int al_pcie_init(struct pci_config_window *cfg)
|
||||
dev_dbg(dev, "Root port dbi res: %pR\n", res);
|
||||
|
||||
al_pcie->dbi_base = devm_pci_remap_cfg_resource(dev, res);
|
||||
if (IS_ERR(al_pcie->dbi_base)) {
|
||||
long err = PTR_ERR(al_pcie->dbi_base);
|
||||
|
||||
dev_err(dev, "couldn't remap dbi base %pR (err:%ld)\n",
|
||||
res, err);
|
||||
return err;
|
||||
}
|
||||
if (IS_ERR(al_pcie->dbi_base))
|
||||
return PTR_ERR(al_pcie->dbi_base);
|
||||
|
||||
cfg->priv = al_pcie;
|
||||
|
||||
@@ -408,10 +403,8 @@ static int al_pcie_probe(struct platform_device *pdev)
|
||||
|
||||
dbi_res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbi");
|
||||
pci->dbi_base = devm_pci_remap_cfg_resource(dev, dbi_res);
|
||||
if (IS_ERR(pci->dbi_base)) {
|
||||
dev_err(dev, "couldn't remap dbi base %pR\n", dbi_res);
|
||||
if (IS_ERR(pci->dbi_base))
|
||||
return PTR_ERR(pci->dbi_base);
|
||||
}
|
||||
|
||||
ecam_res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "config");
|
||||
if (!ecam_res) {
|
||||
|
Reference in New Issue
Block a user