From patchwork Wed Jul 13 12:44:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiyj_lk@163.com X-Patchwork-Id: 9227499 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 B035860572 for ; Wed, 13 Jul 2016 12:45:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FBA826A4D for ; Wed, 13 Jul 2016 12:45:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93AD727165; Wed, 13 Jul 2016 12:45:43 +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_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 2766B26A4D for ; Wed, 13 Jul 2016 12:45:42 +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 1bNJXq-0007fn-5g; Wed, 13 Jul 2016 12:45:42 +0000 Received: from m12-14.163.com ([220.181.12.14]) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNJXe-0006s9-0J; Wed, 13 Jul 2016 12:45:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=hxYn/ hBtv5MkfonR4aq7fqDO5kfWKeFA+hyXTOHkEX0=; b=CpdWGGw9D1a0j/2e8pu4w Saft91CiCF7MesDD8wt2lvGq50Km98pC8Ctz0Ve3Nn8QvWyhvuIEa16BJJqGMMWX q8smZuOZa3tV6ttX8L/rc1BlGhtpPOr0mPfFJT5kpCfQDcORb2VsLWx1MMWZ2IoK CB3vn8EUt7lT3GtS8FBwVs= Received: from localhost.localdomain.localdomain (unknown [180.102.101.186]) by smtp10 (Coremail) with SMTP id DsCowACXJKK5N4ZXqeoFAg--.45719S2; Wed, 13 Jul 2016 20:44:42 +0800 (CST) From: weiyj_lk@163.com To: David Airlie , Matthias Brugger , CK Hu Subject: [PATCH -next] drm/mediatek/mtk_mipi_tx: remove redundant dev_err call in mtk_mipi_tx_probe() Date: Wed, 13 Jul 2016 12:44:41 +0000 Message-Id: <1468413881-2588-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CM-TRANSID: DsCowACXJKK5N4ZXqeoFAg--.45719S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Wr4kCw4kuF47tr4DGr45Jrb_yoWDKrc_Ca 909r17Zwn8GFsavFW7Cr17AFyakrWvk3yFgF1Sk3sFyFWUJr18ur4qvryYgr4DJan5tF1D CF9rXa4rurnrCjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUn_WrJUUUUU== X-Originating-IP: [180.102.101.186] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/xtbBDRql1laDoCfgYAAAs2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160713_054530_400858_48CD90EB X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wei Yongjun , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=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_mipi_tx.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_mipi_tx.c b/drivers/gpu/drm/mediatek/mtk_mipi_tx.c index 1c366f8..b835bba 100644 --- a/drivers/gpu/drm/mediatek/mtk_mipi_tx.c +++ b/drivers/gpu/drm/mediatek/mtk_mipi_tx.c @@ -393,11 +393,8 @@ static int mtk_mipi_tx_probe(struct platform_device *pdev) mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); mipi_tx->regs = devm_ioremap_resource(dev, mem); - if (IS_ERR(mipi_tx->regs)) { - ret = PTR_ERR(mipi_tx->regs); - dev_err(dev, "Failed to get memory resource: %d\n", ret); - return ret; - } + if (IS_ERR(mipi_tx->regs)) + return PTR_ERR(mipi_tx->regs); ref_clk = devm_clk_get(dev, NULL); if (IS_ERR(ref_clk)) {