phy: phy-mtk-mipi-dsi: Remove redundant dev_err call in mtk_mipi_tx_probe()
authorHe Ying <heying24@huawei.com>
Thu, 8 Apr 2021 11:48:50 +0000 (07:48 -0400)
committerVinod Koul <vkoul@kernel.org>
Mon, 14 Jun 2021 05:30:52 +0000 (11:00 +0530)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Reviewed-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: He Ying <heying24@huawei.com>
Link: https://lore.kernel.org/r/20210408114850.14422-1-heying24@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/mediatek/phy-mtk-mipi-dsi.c

index c51114d..01cf316 100644 (file)
@@ -151,9 +151,7 @@ static int mtk_mipi_tx_probe(struct platform_device *pdev)
        mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        mipi_tx->regs = devm_ioremap_resource(dev, mem);
        if (IS_ERR(mipi_tx->regs)) {
-               ret = PTR_ERR(mipi_tx->regs);
-               dev_err(dev, "Failed to get memory resource: %d\n", ret);
-               return ret;
+               return PTR_ERR(mipi_tx->regs);
        }
 
        ref_clk = devm_clk_get(dev, NULL);