From patchwork Sat Sep 10 12:33:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9324973 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 452D460231 for ; Sat, 10 Sep 2016 12:39:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35193294E5 for ; Sat, 10 Sep 2016 12:39:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29FAE29938; Sat, 10 Sep 2016 12:39:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 668DE294E5 for ; Sat, 10 Sep 2016 12:39:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bihTx-0000RO-RL; Sat, 10 Sep 2016 12:34:05 +0000 Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bihTr-0000If-Ku; Sat, 10 Sep 2016 12:34:00 +0000 Received: by mail-pa0-x242.google.com with SMTP id h5so5195192pao.0; Sat, 10 Sep 2016 05:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jUROFzJLF7d1gfF5Ktx5XB7S+aeNcG+4kkBfOCJduAc=; b=ii2jkFIygd+c32MNbz0Bemklwv21cfpsiNSC/vSJFzet0C7ZtoRWlJnPPDu/yQEIgI bxBLiSurbfqni190hl9BseBNWCz+Ph93ReVBNT7WpcVaKQGUl1K3Vy7aZ4JrwsrOHsQA 6oxoP3T3YeFj70/bzdRSFtg6iou/rs+i4gMRrKENwfyLDHg69qDsDshTTvjvZMlOU3hW oii9nyI1th82AzsJrCdtwVN3QtWDNORBYZu2J0mwZQ7eIGflOriwEIoDmad6pbGslDA/ iIOAcUb4DrtJCFeaDdG4WBZbaeVnhhxdZPOC5v8XCMWR5Rvzf8pf4UD+fZeMngiDuahG 8Y0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jUROFzJLF7d1gfF5Ktx5XB7S+aeNcG+4kkBfOCJduAc=; b=d75FEYYr5zwszWY7fQUUAvF27gsMCC6QmkXkt+GtpKD6FuqOB0Chtr9WUlq7EH1Eo1 lvwT3vWPBMknwaxueBNQfZqFEDGjsGwBgdk3OddDmUrygXPZeN1T5s6rDOHNd8NX32R5 8GSP6TxCb01pbcgVgzHLhMfljev/8VFZB8gBuQxUAU/GlGMV6Q7lVhT0/mbjXpawrMzR aTvMyppX3IFZ2l//Ekz4x0Y/rRIwIHSvoNtPhmR57Eg2nTS0ebcuZnxnRE0SpPoxe39u hPze+QdlAor+HnSdwBfowyqNJZg6PIYQKMxONLs5mQvMQ1thYyujgyJxsBygZk5tNPqE mN4w== X-Gm-Message-State: AE9vXwNtaHQhMfl6NzHdIcdvL/ORHQNUgf7blL6J/jpNjWoHltnE6awRf+b9ypBMGNmEQg== X-Received: by 10.66.86.198 with SMTP id r6mr15823300paz.72.1473510816568; Sat, 10 Sep 2016 05:33:36 -0700 (PDT) Received: from localhost.localdomain.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id r16sm1309681pfi.76.2016.09.10.05.33.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Sep 2016 05:33:36 -0700 (PDT) From: Wei Yongjun To: CK Hu , Philipp Zabel , David Airlie , Matthias Brugger Subject: [PATCH -next] drm/mediatek: Remove redundant dev_err call in mtk_drm_probe() Date: Sat, 10 Sep 2016 12:33:29 +0000 Message-Id: <1473510809-26606-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160910_053359_771957_3733FECC X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mediatek@lists.infradead.org, Wei Yongjun , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun 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 --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 72c1ae4..f4f90e8 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -365,12 +365,8 @@ static int mtk_drm_probe(struct platform_device *pdev) mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); private->config_regs = devm_ioremap_resource(dev, mem); - if (IS_ERR(private->config_regs)) { - ret = PTR_ERR(private->config_regs); - dev_err(dev, "Failed to ioremap mmsys-config resource: %d\n", - ret); - return ret; - } + if (IS_ERR(private->config_regs)) + return PTR_ERR(private->config_regs); /* Iterate over sibling DISP function blocks */ for_each_child_of_node(dev->of_node->parent, node) {