OSDN Git Service

media: bdisp: remove redundant dev_err call in bdisp_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 17 May 2021 03:11:23 +0000 (05:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 11:32:05 +0000 (13:32 +0200)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/sti/bdisp/bdisp-v4l2.c

index 85288da..6413cd2 100644 (file)
@@ -1318,7 +1318,6 @@ static int bdisp_probe(struct platform_device *pdev)
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        bdisp->regs = devm_ioremap_resource(dev, res);
        if (IS_ERR(bdisp->regs)) {
-               dev_err(dev, "failed to get regs\n");
                ret = PTR_ERR(bdisp->regs);
                goto err_wq;
        }