PCI: imx6: Remove imx6_pcie_probe() redundant error message
authorZhen Lei <thunder.leizhen@huawei.com>
Tue, 11 May 2021 11:45:47 +0000 (19:45 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 24 Jun 2021 19:49:46 +0000 (14:49 -0500)
When devm_ioremap_resource() fails, __devm_ioremap_resource() prints an
error message including the device name, failure cause, and possibly
resource information.

Remove the error message from imx6_pcie_probe() since it's redundant.

Link: https://lore.kernel.org/r/20210511114547.5601-1-thunder.leizhen@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
Acked-by: Richard Zhu <hongxing.zhu@nxp.com>
drivers/pci/controller/dwc/pci-imx6.c

index 0cf1333..035fb62 100644 (file)
@@ -1002,10 +1002,8 @@ static int imx6_pcie_probe(struct platform_device *pdev)
                        return ret;
                }
                imx6_pcie->phy_base = devm_ioremap_resource(dev, &res);
-               if (IS_ERR(imx6_pcie->phy_base)) {
-                       dev_err(dev, "Unable to map PCIe PHY\n");
+               if (IS_ERR(imx6_pcie->phy_base))
                        return PTR_ERR(imx6_pcie->phy_base);
-               }
        }
 
        dbi_base = platform_get_resource(pdev, IORESOURCE_MEM, 0);