Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1407118imc; Mon, 11 Mar 2019 13:06:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqmt1BYYylYVaxLtxYQHrQMC085dEsUE1yUTyQDf7WfIvCFLSH7rlJUCrZTz5vxsCAUjgL X-Received: by 2002:a17:902:728f:: with SMTP id d15mr35965253pll.156.1552334763596; Mon, 11 Mar 2019 13:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552334763; cv=none; d=google.com; s=arc-20160816; b=kNxHYaIZe7CDYNbFrd1V5fOhtJ8UgsERZunLkCmud0s0bo/lFsq+OPU+EfUVG5G7z1 4YBfaVc8T4Z00zOlGVzbIYhin4I3eXUA3zL4A5i8LPFAPBEzYbuWa364SHRpNYNxdSs8 8bNsPG42qYpKA9hI1v/m/h9mJX2s7W7Ywk2ESNWuPMkwOx42ftIUbuEiYLu4CauMlurH fP9ch4Il+xrDQT/dAe5M0IALpCSCRMKbXc1Vr8vXh/NlLyp0f29CYYMO1de+WdALCA3w yp4G3NU8V7bUGNcI/m/XXcsvDnep/Fzmf2yOL5S35AhkjYLJ0G3Nmpn+4ZsCmtAqsc4v Z/XA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=87RHPk5s5w64op8xREWvG+t0BAl7NSRjw5RPa6dZZl4=; b=J5Ggx5SHdIoxLxkmQHHGSewxlQOWJ5MeQEVBDFfXoMVDiJpJmAFt4GHsdBng/qvX9y rDwiqoVndQ3qLUZQL+JuVSQEOj7G85vZa8qEyRfL6Aocx5frP2ozSomJocX/EenvvVo9 ShJz+t24X+5Rv7lGP2spcA+FdW9Z5GrO4zIMlzQ1XR1co4Z46M0YDLBQpAKtJpgOvDSi XkNZicLUmB2fyGfOUWSPeg/7AQjuNEqUuMixwwad8u1hv4fLsQ3DGREjnJCzJ5gy8Zhf zEd86J1Lhh4MwUkugEUg39AJ+sOQKbU9PymJbSLzOWqOV8k31TDwsREsD+w4M8aJpfoO s4ug== 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 r16si5601912pgm.483.2019.03.11.13.05.46; Mon, 11 Mar 2019 13:06:03 -0700 (PDT) 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 S1729340AbfCKT6R (ORCPT + 99 others); Mon, 11 Mar 2019 15:58:17 -0400 Received: from mleia.com ([178.79.152.223]:48070 "EHLO mail.mleia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729294AbfCKT6O (ORCPT ); Mon, 11 Mar 2019 15:58:14 -0400 Received: from mail.mleia.com (localhost [127.0.0.1]) by mail.mleia.com (Postfix) with ESMTP id A4090457CBF; Mon, 11 Mar 2019 19:58:11 +0000 (GMT) Subject: Re: [PATCH 18/42] drivers: gpio: lpc18xx: use devm_platform_ioremap_resource() To: "Enrico Weigelt, metux IT consult" , linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, bgolaszewski@baylibre.com, andrew@aj.id.au, f.fainelli@gmail.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, hoan@os.amperecomputing.com, orsonzhai@gmail.com, baolin.wang@linaro.org, zhang.lyra@gmail.com, keguang.zhang@gmail.com, matthias.bgg@gmail.com, thierry.reding@gmail.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, robert.jarzmik@free.fr, yamada.masahiro@socionext.com, jun.nie@linaro.org, shawnguo@kernel.org, linux-gpio@vger.kernel.org, linux-mips@vger.kernel.org, linux-pwm@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org References: <1552330521-4276-1-git-send-email-info@metux.net> <1552330521-4276-18-git-send-email-info@metux.net> From: Vladimir Zapolskiy Message-ID: <3a36e19b-05ef-2c0d-ce86-9422d6748b0c@mleia.com> Date: Mon, 11 Mar 2019 21:58:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1552330521-4276-18-git-send-email-info@metux.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-49551924 X-CRM114-CacheID: sfid-20190311_195811_744851_E739B33D X-CRM114-Status: GOOD ( 14.69 ) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/11/2019 08:54 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/gpio/gpio-lpc18xx.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/gpio/gpio-lpc18xx.c b/drivers/gpio/gpio-lpc18xx.c > index d441dba..d711ae0 100644 > --- a/drivers/gpio/gpio-lpc18xx.c > +++ b/drivers/gpio/gpio-lpc18xx.c > @@ -340,10 +340,7 @@ static int lpc18xx_gpio_probe(struct platform_device *pdev) > index = of_property_match_string(dev->of_node, "reg-names", "gpio"); > if (index < 0) { > /* To support backward compatibility take the first resource */ > - struct resource *res; > - > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - gc->base = devm_ioremap_resource(dev, res); > + gc->base = devm_platform_ioremap_resource(pdev, 0); > } else { > struct resource res; > > Acked-by: Vladimir Zapolskiy -- Best wishes, Vladimir