summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-10-17 14:56:13 +0000
committerBjorn Helgaas <bhelgaas@google.com>2016-11-11 15:20:03 -0600
commitc19699a8c6574efe2fb7949ee5b467612193e2fc (patch)
treea5644f24ac6674fcd938307340151ad75db2761f /drivers/pci
parentc5d933b1229c6bb79de3a144d2b33e756f4afd6d (diff)
downloadtalos-obmc-linux-c19699a8c6574efe2fb7949ee5b467612193e2fc.tar.gz
talos-obmc-linux-c19699a8c6574efe2fb7949ee5b467612193e2fc.zip
PCI: altera: Remove redundant error message in altera_pcie_parse_dt()
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> Acked-by: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pcie-altera.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c
index eefcb38004fe..0c1540225ca3 100644
--- a/drivers/pci/host/pcie-altera.c
+++ b/drivers/pci/host/pcie-altera.c
@@ -550,10 +550,8 @@ static int altera_pcie_parse_dt(struct altera_pcie *pcie)
cra = platform_get_resource_byname(pdev, IORESOURCE_MEM, "Cra");
pcie->cra_base = devm_ioremap_resource(dev, cra);
- if (IS_ERR(pcie->cra_base)) {
- dev_err(dev, "failed to map cra memory\n");
+ if (IS_ERR(pcie->cra_base))
return PTR_ERR(pcie->cra_base);
- }
/* setup IRQ */
pcie->irq = platform_get_irq(pdev, 0);
OpenPOWER on IntegriCloud