aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/controller/cadence/pcie-cadence-host.c
diff options
context:
space:
mode:
authorDejin Zheng <zhengdejin5@gmail.com>2020-05-26 23:09:54 +0800
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-07-23 11:08:43 +0100
commitda30e8bc9accaf74505bff4b16b792a01d6d1c0b (patch)
tree490e2e9eb0707550af904644139a8d1d45f1acf7 /drivers/pci/controller/cadence/pcie-cadence-host.c
parentPCI: controller: Convert to devm_platform_ioremap_resource() (diff)
downloadwireguard-linux-da30e8bc9accaf74505bff4b16b792a01d6d1c0b.tar.xz
wireguard-linux-da30e8bc9accaf74505bff4b16b792a01d6d1c0b.zip
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>
Diffstat (limited to 'drivers/pci/controller/cadence/pcie-cadence-host.c')
-rw-r--r--drivers/pci/controller/cadence/pcie-cadence-host.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/controller/cadence/pcie-cadence-host.c b/drivers/pci/controller/cadence/pcie-cadence-host.c
index 59b9b3df4640..8809beb51d04 100644
--- a/drivers/pci/controller/cadence/pcie-cadence-host.c
+++ b/drivers/pci/controller/cadence/pcie-cadence-host.c
@@ -225,10 +225,8 @@ int cdns_pcie_host_setup(struct cdns_pcie_rc *rc)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg");
rc->cfg_base = devm_pci_remap_cfg_resource(dev, res);
- if (IS_ERR(rc->cfg_base)) {
- dev_err(dev, "missing \"cfg\"\n");
+ if (IS_ERR(rc->cfg_base))
return PTR_ERR(rc->cfg_base);
- }
rc->cfg_res = res;
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mem");