[media] mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:02:59 +0000 (08:02 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 11:01:20 +0000 (08:01 -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>
Reviewed-by: Tiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c

index 60b0bde232f4496f68343b02024d9a6f1c114f04..e277b7c23516d4e8500889387e4f2ed6be883360 100644 (file)
@@ -279,8 +279,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
                }
                dev->reg_base[i] = devm_ioremap_resource(&pdev->dev, res);
                if (IS_ERR((__force void *)dev->reg_base[i])) {
-                       dev_err(&pdev->dev,
-                               "devm_ioremap_resource %d failed.", i);
                        ret = PTR_ERR((__force void *)dev->reg_base[i]);
                        goto err_res;
                }