drm/sun4i: backend: remove redundant dev_err call in sun4i_backend_bind()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 03:25:58 +0000 (03:25 +0000)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 18 Sep 2016 19:04:15 +0000 (21:04 +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: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_backend.c

index 91a702225ded49550131520b5aef376cfbe0c779..fcd4e912c0d77090728b894008a1bdb0ea638594 100644 (file)
@@ -288,10 +288,8 @@ static int sun4i_backend_bind(struct device *dev, struct device *master,
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        regs = devm_ioremap_resource(dev, res);
-       if (IS_ERR(regs)) {
-               dev_err(dev, "Couldn't map the backend registers\n");
+       if (IS_ERR(regs))
                return PTR_ERR(regs);
-       }
 
        backend->regs = devm_regmap_init_mmio(dev, regs,
                                              &sun4i_backend_regmap_config);