summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-08-26 14:25:25 +0000
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-08-27 14:16:13 +0200
commitaf346f5570f208dcfb319f1214fcf8ca310c6fdd (patch)
treebb9e946727af01d477f11e23f7c6f87e42938fdc /drivers/gpu/drm/sun4i
parent894f5a9f4b4aaf154fce121d80199a2e2146d6d1 (diff)
downloadtalos-op-linux-af346f5570f208dcfb319f1214fcf8ca310c6fdd.tar.gz
talos-op-linux-af346f5570f208dcfb319f1214fcf8ca310c6fdd.zip
drm/sun4i: Remove redundant dev_err call in sun4i_tcon_init_regmap()
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>
Diffstat (limited to 'drivers/gpu/drm/sun4i')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_tcon.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index 2145ecf2cf5d..9180e7e7b551 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
@@ -374,10 +374,8 @@ static int sun4i_tcon_init_regmap(struct device *dev,
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 TCON registers\n");
+ if (IS_ERR(regs))
return PTR_ERR(regs);
- }
tcon->regs = devm_regmap_init_mmio(dev, regs,
&sun4i_tcon_regmap_config);
OpenPOWER on IntegriCloud