[media] VPU: mediatek: remove redundant dev_err call in mtk_vpu_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:01:26 +0000 (08:01 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 11:00:23 +0000 (08:00 -0300)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-vpu/mtk_vpu.c

index c8b2c72e7c48032405c5fd2855a31d57e5a24dbf..c9bf58c978780c727d4ec0f8595fdd8627eada17 100644 (file)
@@ -774,17 +774,13 @@ static int mtk_vpu_probe(struct platform_device *pdev)
        vpu->dev = &pdev->dev;
        res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "tcm");
        vpu->reg.tcm = devm_ioremap_resource(dev, res);
-       if (IS_ERR((__force void *)vpu->reg.tcm)) {
-               dev_err(dev, "devm_ioremap_resource vpu tcm failed.\n");
+       if (IS_ERR((__force void *)vpu->reg.tcm))
                return PTR_ERR((__force void *)vpu->reg.tcm);
-       }
 
        res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg_reg");
        vpu->reg.cfg = devm_ioremap_resource(dev, res);
-       if (IS_ERR((__force void *)vpu->reg.cfg)) {
-               dev_err(dev, "devm_ioremap_resource vpu cfg failed.\n");
+       if (IS_ERR((__force void *)vpu->reg.cfg))
                return PTR_ERR((__force void *)vpu->reg.cfg);
-       }
 
        /* Get VPU clock */
        vpu->clk = devm_clk_get(dev, "main");