From patchwork Tue Jan 17 14:22:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9521171 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 652A56020A for ; Tue, 17 Jan 2017 14:23:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54AB926E3E for ; Tue, 17 Jan 2017 14:23:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 471E728236; Tue, 17 Jan 2017 14:23:28 +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 AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0188226E3E for ; Tue, 17 Jan 2017 14:23:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cTUfW-0007QN-AS; Tue, 17 Jan 2017 14:23:26 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTUfM-0007Eu-Hs; Tue, 17 Jan 2017 14:23:18 +0000 Received: by mail-pg0-x243.google.com with SMTP id 75so8168494pgf.3; Tue, 17 Jan 2017 06:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DqyWBPNEWyP3xKjt6BkaT62IyBwgsR+igK/COOKktt0=; b=OYm4wxkfzvIb23P/h8RHgln4sXsrvT8pF1nhR9w3cZA8IMz4evnOYwckKa65ZaZX97 I6eWbPj1X8Gmm4x3Zob2VFhjGWTktYDcG611rL7tBEBlyK3pbC7LpoCpoUvblbvZLc1a W2aqi8NSf+LnKln5NhgS7mX1U1FYEbWod5UFbuXdPMrGwtEWjYm5vGPLGYB0DtvYbfds XGEL9vSYhyXXIkJxnnLp8Cy1N+vIYVxJ6h4txLKdaOtJLOEs2pkW2VCBy5M+mBaGWSsj S7+W7SB/I+U41uONcHHao6TLnKqUH8B8tvUM25mzHPPpRORspdVVwGYkGcGcWMBCflYX fZ+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DqyWBPNEWyP3xKjt6BkaT62IyBwgsR+igK/COOKktt0=; b=tB41ya6iT1StlPFIFYiXBHC0xWQ2MaAdBcUqBi4rv9fUOlgd+wEvB5z1l+qbLJ9L9m ZZZY5QPee2Pqa2EqH/v0832S95fw6WX3RcBpUu1vMHgNcIHm9EiYvtdgdqkDR9R7N5FM hRhRqugOcROjw3i2XsCfj7QxGQ6V44pH/XXBubC+0y2qkJkkgdD/BXdSlJhS1cxhj378 0Lzp4gqtOd+LHsBg+sUV1nxSFuZndWIW19Vgt/4ZWWImuWwGP4GuJfAPEZjrN1is+QjV IouJLCPum28fFDSgts7H9W+3ch6Kn6SgxmxO+33162DAr4RYJ+ziHFz5spXk3/7FvnG3 GFnA== X-Gm-Message-State: AIkVDXKf6rI21m7jgwpSC9isfTyn2OHRT9ADmYYlo4QXqD/fpBzut+hx4xQGcxKvLmvT1w== X-Received: by 10.98.75.156 with SMTP id d28mr43816621pfj.59.1484662974997; Tue, 17 Jan 2017 06:22:54 -0800 (PST) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id m14sm4235434pgn.19.2017.01.17.06.22.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 06:22:54 -0800 (PST) From: Wei Yongjun To: Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Matthias Brugger Subject: [PATCH -next] mtd: nand: mediatek: remove redundant dev_err call in mtk_nfc_probe() Date: Tue, 17 Jan 2017 14:22:46 +0000 Message-Id: <20170117142246.9607-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170117_062316_644171_6BD70309 X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mtd@lists.infradead.org, linux-mediatek@lists.infradead.org, Wei Yongjun , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.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 Acked-by: Marek Vasut --- drivers/mtd/nand/mtk_nand.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/mtk_nand.c b/drivers/mtd/nand/mtk_nand.c index 6c3eed3..6c517c6 100644 --- a/drivers/mtd/nand/mtk_nand.c +++ b/drivers/mtd/nand/mtk_nand.c @@ -1383,7 +1383,6 @@ static int mtk_nfc_probe(struct platform_device *pdev) nfc->regs = devm_ioremap_resource(dev, res); if (IS_ERR(nfc->regs)) { ret = PTR_ERR(nfc->regs); - dev_err(dev, "no nfi base\n"); goto release_ecc; }