[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210604100445.3653140-1-chenxiaosong2@huawei.com>
Date: Fri, 4 Jun 2021 18:04:45 +0800
From: ChenXiaoSong <chenxiaosong2@...wei.com>
To: <mcoquelin.stm32@...il.com>, <alexandre.torgue@...s.st.com>
CC: <linux-stm32@...md-mailman.stormreply.com>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <yukuai3@...wei.com>,
<yi.zhang@...wei.com>, <chenxiaosong2@...wei.com>
Subject: [PATCH -next] drm/stm: Remove redundant dev_err call in ltdc_load()
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: ChenXiaoSong <chenxiaosong2@...wei.com>
---
drivers/gpu/drm/stm/ltdc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c
index e99771b947b6..9d06c70b3331 100644
--- a/drivers/gpu/drm/stm/ltdc.c
+++ b/drivers/gpu/drm/stm/ltdc.c
@@ -1284,7 +1284,6 @@ int ltdc_load(struct drm_device *ddev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
ldev->regs = devm_ioremap_resource(dev, res);
if (IS_ERR(ldev->regs)) {
- DRM_ERROR("Unable to get ltdc registers\n");
ret = PTR_ERR(ldev->regs);
goto err;
}
--
2.25.4
Powered by blists - more mailing lists