From: Wei Yongjun Date: Thu, 15 Sep 2016 03:25:58 +0000 (+0000) Subject: drm/sun4i: backend: remove redundant dev_err call in sun4i_backend_bind() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9a8aa939ba33998f4c70c082dbd4d27a5ddcaaf6;p=openwrt%2Fstaging%2Fblogic.git drm/sun4i: backend: remove redundant dev_err call in sun4i_backend_bind() 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 Signed-off-by: Maxime Ripard --- diff --git a/drivers/gpu/drm/sun4i/sun4i_backend.c b/drivers/gpu/drm/sun4i/sun4i_backend.c index 91a702225ded..fcd4e912c0d7 100644 --- a/drivers/gpu/drm/sun4i/sun4i_backend.c +++ b/drivers/gpu/drm/sun4i/sun4i_backend.c @@ -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);