From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63413ECE58E for ; Thu, 17 Oct 2019 12:58:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 325CC20854 for ; Thu, 17 Oct 2019 12:58:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Xj6qaBrC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 325CC20854 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=axis.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OBbWP/RV9QnVOmgln9IQoyqXZi+UX8UF6pHTQUoMnFU=; b=Xj6qaBrCLMSrNB Bw1DnapBHRUm6jdhwjvMZFOpM0iiHbyiwqgfmQ6FXaxKCtPb0SsL7a+/3GZPDy+shnb28C0wrEhaU tDGUgg62U2UhgqytYeqaE7xFR0iPq8mEKNuyP90IX9+pfFsjWYA5e89soIlvf8BoCiY/X/m6487dU VWJQQVw+aaY0mvt4mXQAF0Yov+a5EEVSx0zvJj3sekMXHxbXWGRQE5gxvycjqoXFtWGmHl2yKSBCk Rng6wuSThJgpi5MAt4kDgGlzYtXuYE5Ec5zlpLrpLCxIGmo0RI8zA8zir5BxTWVJmEDdEjwbtUQVi Lc9sVm7/eaV6xqsGpFIw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iL5MJ-0007Ei-Bu; Thu, 17 Oct 2019 12:58:27 +0000 Received: from bastet.se.axis.com ([195.60.68.11]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iL5Fu-0008NT-OB for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2019 12:51:52 +0000 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id AEC73184A3; Thu, 17 Oct 2019 14:51:46 +0200 (CEST) X-Axis-User: NO X-Axis-NonUser: YES X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id ORlrqU7P1kMl; Thu, 17 Oct 2019 14:51:45 +0200 (CEST) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id E39721816A; Thu, 17 Oct 2019 14:51:43 +0200 (CEST) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C696B1E075; Thu, 17 Oct 2019 14:51:43 +0200 (CEST) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B191E1E074; Thu, 17 Oct 2019 14:51:43 +0200 (CEST) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder03.se.axis.com (Postfix) with ESMTP; Thu, 17 Oct 2019 14:51:43 +0200 (CEST) Received: from lnxjespern3.se.axis.com (lnxjespern3.se.axis.com [10.88.4.8]) by thoth.se.axis.com (Postfix) with ESMTP id 97D0F2F9F; Thu, 17 Oct 2019 14:51:43 +0200 (CEST) Received: by lnxjespern3.se.axis.com (Postfix, from userid 363) id 92A7C800E1; Thu, 17 Oct 2019 14:51:43 +0200 (CEST) Date: Thu, 17 Oct 2019 14:51:43 +0200 From: Jesper Nilsson To: YueHaibing Subject: Re: [PATCH -next 27/30] pinctrl: artpec6: use devm_platform_ioremap_resource() to simplify code Message-ID: <20191017125143.yxhwy6lvzfhle7ey@axis.com> References: <20191017122640.22976-1-yuehaibing@huawei.com> <20191017122640.22976-28-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191017122640.22976-28-yuehaibing@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) X-TM-AS-GCONF: 00 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191017_055151_126808_48AD6DF7 X-CRM114-Status: GOOD ( 14.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "alexandre.belloni@bootlin.com" , "geert+renesas@glider.be" , "narmstrong@baylibre.com" , "linus.walleij@linaro.org" , "baruch@tkos.co.il" , "thierry.reding@gmail.com" , "manivannan.sadhasivam@linaro.org" , "f.fainelli@gmail.com" , "wens@csie.org" , linux-arm-kernel , "jonathanh@nvidia.com" , "ludovic.desroches@microchip.com" , "agross@kernel.org" , "bcm-kernel-feedback-list@broadcom.com" , "rjui@broadcom.com" , "linux-arm-msm@vger.kernel.org" , "haojian.zhuang@gmail.com" , "vz@mleia.com" , "linux-gpio@vger.kernel.org" , Lars Persson , "linux-tegra@vger.kernel.org" , Jesper Nilsson , "linux-arm-kernel@lists.infradead.org" , "sbranden@broadcom.com" , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "linux-oxnas@groups.io" , "afaerber@suse.de" , "daniel@zonque.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Oct 17, 2019 at 02:26:37PM +0200, YueHaibing wrote: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing Acked-by: Jesper Nilsson > --- > drivers/pinctrl/pinctrl-artpec6.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/pinctrl/pinctrl-artpec6.c b/drivers/pinctrl/pinctrl-artpec6.c > index e3239cf..986e04a 100644 > --- a/drivers/pinctrl/pinctrl-artpec6.c > +++ b/drivers/pinctrl/pinctrl-artpec6.c > @@ -936,7 +936,6 @@ static void artpec6_pmx_reset(struct artpec6_pmx *pmx) > static int artpec6_pmx_probe(struct platform_device *pdev) > { > struct artpec6_pmx *pmx; > - struct resource *res; > > pmx = devm_kzalloc(&pdev->dev, sizeof(*pmx), GFP_KERNEL); > if (!pmx) > @@ -944,8 +943,7 @@ static int artpec6_pmx_probe(struct platform_device *pdev) > > pmx->dev = &pdev->dev; > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - pmx->base = devm_ioremap_resource(&pdev->dev, res); > + pmx->base = devm_platform_ioremap_resource(pdev, 0); > > if (IS_ERR(pmx->base)) > return PTR_ERR(pmx->base); > -- > 2.7.4 > > /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson@axis.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel