]> Git Repo - linux.git/commitdiff
drm/arm: mali-dp: Remove redundant dev_err call in malidp_bind()
authorWei Yongjun <[email protected]>
Thu, 28 Jul 2016 02:09:13 +0000 (02:09 +0000)
committerDaniel Vetter <[email protected]>
Thu, 28 Jul 2016 10:59:12 +0000 (12:59 +0200)
There is a error message within devm_ioremap_resource
already, so remove the DRM_ERROR call to avoid redundant
error message.

Signed-off-by: Wei Yongjun <[email protected]>
Acked-by: Liviu Dudau <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/arm/malidp_drv.c

index 4e61ea508b4e591965e3bf586a75f16272205cf4..116032216e622123c170a382d3321a46aade7f53 100644 (file)
@@ -285,10 +285,8 @@ static int malidp_bind(struct device *dev)
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        hwdev->regs = devm_ioremap_resource(dev, res);
-       if (IS_ERR(hwdev->regs)) {
-               DRM_ERROR("Failed to map control registers area\n");
+       if (IS_ERR(hwdev->regs))
                return PTR_ERR(hwdev->regs);
-       }
 
        hwdev->pclk = devm_clk_get(dev, "pclk");
        if (IS_ERR(hwdev->pclk))
This page took 0.058443 seconds and 4 git commands to generate.