Received: by 10.223.176.46 with SMTP id f43csp833862wra; Sat, 20 Jan 2018 05:50:37 -0800 (PST) X-Google-Smtp-Source: AH8x226AGKde8SP758wZWh54k7/U3tLkE/d5Xmh0mFhIEAm9pIdrDzeW6+7JIsM7s02vZa9SkWY2 X-Received: by 10.99.138.75 with SMTP id y72mr2028947pgd.90.1516456237264; Sat, 20 Jan 2018 05:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516456237; cv=none; d=google.com; s=arc-20160816; b=aRQ/0qweX6jn+hT2hWUGnx1SuGMCF5gZEnfENBfTu6eDIxZpbhd6xSB7m6AWmVC5CC HGl0H2tiS4nKS6UQiEq8zlUW4yqdYOBcI087fSN9ntC8c0INdLIF2bsf9tQiWjsHC6xi D+cTKwr0d/o7/vGYLjJZizPF6nAb/bLFXM5os7UiuZH3h8jyZvk/wcmJ8QWVas5QF66Q UFM8XphmYk9OdDHqwp+ngNeEEq73/aBWvc0HXu9cl5mbte6+Q0JMfA82lenoRCh0p6ca PVzMPoy7w1kPhyxTKeZCHTxHh7ksaPVSszGrOBOjRsX0DQxpspiQ7JgVOfup1wzcif38 UIpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=aKo36Cdk6YHDJ5p+V/36rmn72+Nfxg6crpDB1Yvp0n8=; b=DkLwNWbkfuqrfL/25L5RKoe5mzKp9l56xnpXXqim7la43pAWqaAhQcak+urv4Qe/Sj 8nFpI78iLlHQT5YqsWFHLwZMPOGX6KsWcW4CLID8GcpzQg9xxD5gKqBWeVft1n/lKtDI Ul4ANJJEIxytCyisgk5+5rv+S9p6ydugZ91FSImaGhw1+RE3ZkrHBRcHyiqDXrdO54UF yFCwGjat6b4/7mCnwOuLN3lGj5MXIp4bOMbgCFJlYwn6ULmPRC27EF/VmWs3SrJ6oDpN U80fDz6J82eF2N7bI4iDKr0AhYkNnuSCMQF4CUn06b/Gypjn0F/McnKdMQa+7RzV3xTm T+Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si7054841pgp.281.2018.01.20.05.50.11; Sat, 20 Jan 2018 05:50:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754874AbeATNtQ (ORCPT + 99 others); Sat, 20 Jan 2018 08:49:16 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:56872 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbeATNtJ (ORCPT ); Sat, 20 Jan 2018 08:49:09 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 40E00207E5; Sat, 20 Jan 2018 14:49:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [91.160.177.164]) by mail.free-electrons.com (Postfix) with ESMTPSA id ED9622070D; Sat, 20 Jan 2018 14:49:07 +0100 (CET) Date: Sat, 20 Jan 2018 14:49:06 +0100 From: Boris Brezillon To: Wei Yongjun Cc: Kyungmin Park , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Cyrille Pitchen , , , Subject: Re: [PATCH -next] mtd: onenand: omap2: Remove redundant dev_err call in omap2_onenand_probe() Message-ID: <20180120144906.3d22a204@bbrezillon> In-Reply-To: <1516188333-144550-1-git-send-email-weiyongjun1@huawei.com> References: <1516188333-144550-1-git-send-email-weiyongjun1@huawei.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Jan 2018 11:25:33 +0000 Wei Yongjun wrote: > There is a error message within devm_ioremap_resource > already, so remove the dev_err call to avoid redundant > error message. Applied. Thanks, Boris > > Signed-off-by: Wei Yongjun > --- > drivers/mtd/onenand/omap2.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c > index a4a2159..87c34f6 100644 > --- a/drivers/mtd/onenand/omap2.c > +++ b/drivers/mtd/onenand/omap2.c > @@ -532,10 +532,8 @@ static int omap2_onenand_probe(struct platform_device *pdev) > c->phys_base = res->start; > > c->onenand.base = devm_ioremap_resource(dev, res); > - if (IS_ERR(c->onenand.base)) { > - dev_err(dev, "Cannot reserve memory region %pR\n", res); > + if (IS_ERR(c->onenand.base)) > return PTR_ERR(c->onenand.base); > - } > > c->int_gpiod = devm_gpiod_get_optional(dev, "int", GPIOD_IN); > if (IS_ERR(c->int_gpiod)) { > > >