]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/arc: Remove redundant dev_err call in arcpgu_load()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 19 Jul 2016 12:01:37 +0000 (12:01 +0000)
committerSean Paul <seanpaul@chromium.org>
Tue, 19 Jul 2016 19:33:50 +0000 (15:33 -0400)
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: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/arc/arcpgu_drv.c

index c501576f667964f5552ac08e0306e6bba4027490..6d4ff34737cb73746ce37dd7b4c00293d74c1283 100644 (file)
@@ -103,10 +103,8 @@ static int arcpgu_load(struct drm_device *drm)
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        arcpgu->regs = devm_ioremap_resource(&pdev->dev, res);
-       if (IS_ERR(arcpgu->regs)) {
-               dev_err(drm->dev, "Could not remap IO mem\n");
+       if (IS_ERR(arcpgu->regs))
                return PTR_ERR(arcpgu->regs);
-       }
 
        dev_info(drm->dev, "arc_pgu ID: 0x%x\n",
                 arc_pgu_read(arcpgu, ARCPGU_REG_ID));