Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8521280rwr; Thu, 11 May 2023 02:24:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5WH3GpARJnJTUp8OnD9fqA6vW6Kx9eZ4nDFYtCrcheQHHAexy3r0uRTkYFb9zQXbxm0PLC X-Received: by 2002:a17:90a:458e:b0:24e:277a:c031 with SMTP id v14-20020a17090a458e00b0024e277ac031mr20761902pjg.28.1683797043414; Thu, 11 May 2023 02:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683797043; cv=none; d=google.com; s=arc-20160816; b=MMasVTXgI2UB1pOQMzU2/ncQKFo9XX7jDStFS/cW8nDUIcsRBzKyW/t4uM6szsAxxd EnuQLRtsoyQqasLRFUf1Did9phHEGJx2j+Amsc4Gz4pYGcSZR5t4UYiBE947xNCDebLU hhMxThuOTOJ8o+DWl3ex/eqYatwdQ0fzDC24BcAKAkAobSxPwQQkzDpMh0ambK7thnPi B3V+RORL9NOr4WcCe/IObtnNBDwRWaPbfU8SWt459asyiYfNJF39qKNZ9giIjzqEb2ZG xghgwaF+FfRYo9dc/cuKRgHef0oOkWDyRbxzINDQW23ig07oGPa9IB/x0f3qFA7fXmeO 63GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Z2RWFkOnrDLw/O/adql07M1PbPyuhWnz0SZO+oUNaXs=; b=wr7f0HruHrtomuCiACX88pRu+/oHAIytnKEdoq0o5+iLfXL/7Gw+w0hiF/jkbevhcp LFDmHCXIKbsqdtbxATxon6M+Q+GCWcnA5ZmqvYq+PkJlaO0Uw8B0+YugyKQcxIBfTi2L 8MFT+vapeZFSanx21w3kG9v0dzHBj25RKin9PYwGJ7aM2GlM4w8g7Nr3Vl5ByBTsbzLM YLcYGZI9G3AFOWtbd0XjDYq8mNlZzvxI2y4MMw9YyqXYW3F43N/8HR2PkKqUHcYwC3yV yP2o/5bq+g67X62aqyM4xtzDjmUl7YXBxiYXw12TG+rnoNOT8pINK0kvBSUu+2dA322J G3KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=TipL+YMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a17090acf1300b0024e0ca07405si20280155pju.140.2023.05.11.02.23.49; Thu, 11 May 2023 02:24:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=TipL+YMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbjEKJIX (ORCPT + 99 others); Thu, 11 May 2023 05:08:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232935AbjEKJIW (ORCPT ); Thu, 11 May 2023 05:08:22 -0400 Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 723CE55A2 for ; Thu, 11 May 2023 02:08:21 -0700 (PDT) Received: by mail-vs1-xe2e.google.com with SMTP id ada2fe7eead31-43627012261so459424137.2 for ; Thu, 11 May 2023 02:08:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1683796100; x=1686388100; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Z2RWFkOnrDLw/O/adql07M1PbPyuhWnz0SZO+oUNaXs=; b=TipL+YMZ5V9RAGljWWOgP4knVW35LAG20p5SJr1GSfODYf9DAXl3PRxmc/Ik3d9cyn IInwYV/hyYqXvCbBe2LqoSHBG2BaYGhlGtOAos0+L+0TKSr5T5+kr9K/XcOt8UjUkfpt cQnSPejHGYurY/wA++SJ/l7FSaQfMby9DvLThfjpyddxrrUkCO82Ja6WoR6WHTrBZErP 4SBr90CDS4YAUqc7/yl87M/XPy6HyJv1Lnesxv+VdjUO0YCc6EaQVa+DZ2hvvfbkL/Hd eiemisxwIrtCWg1A2iPVYvbVxEMC/09zTEy4Y7ti2s6TsepfLIdwkunTCdkkmJ6EETsi CWyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683796100; x=1686388100; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z2RWFkOnrDLw/O/adql07M1PbPyuhWnz0SZO+oUNaXs=; b=JtTuYcfv2h+NpYw642H5QuFSLeBjrr0vCFVUFAogrlFyrvaDsYPY1Q6dubay9M3+hD SsVeT20lzdLARZfaWKy4NZpnvab91h69JZKuC3KSP+XSKdfiUqaJX1WmMpbn/zbE3+zP SivoYhmVDclZuChYZca9waPmN0U9T1ytgjs6CVEo/cFLUPYymgW1IHvpkXng7Wf3lN3l WZOat52rPy88eK9FP+iC7t+mzZBFOruuwXLb7Rd8JTRhprfyedqsfpTzhcdm4gy+dJLm TaP0gcHUY5d3AFO/U0qkdghrapPh5ZpXpLd/7LA9mV9ilSB22ttowsOtoToQCISKLA4d wd0A== X-Gm-Message-State: AC+VfDz4A0Ro3+0kX9YqLTzdS328590eL6S5dwDyxFikNoVUvtP/t5FN 8vRKqNsPSsEiYPP3fuZ9xmIjVPXOI155IBXHfbcP3U+rMOeNE7Yi X-Received: by 2002:a67:de92:0:b0:434:6ea9:2f21 with SMTP id r18-20020a67de92000000b004346ea92f21mr7695062vsk.5.1683796100600; Thu, 11 May 2023 02:08:20 -0700 (PDT) MIME-Version: 1.0 References: <20230428060938.98198-1-yang.lee@linux.alibaba.com> In-Reply-To: <20230428060938.98198-1-yang.lee@linux.alibaba.com> From: Bartosz Golaszewski Date: Thu, 11 May 2023 11:08:09 +0200 Message-ID: Subject: Re: [PATCH -next] gpio: ixp4xx: Use devm_platform_ioremap_resource() To: Yang Li Cc: linusw@kernel.org, kaloz@openwrt.org, khalasa@piap.pl, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 28, 2023 at 8:09=E2=80=AFAM Yang Li wrote: > > Convert platform_get_resource(),devm_ioremap_resource() to a single > call to devm_platform_ioremap_resource(), as this is exactly what this > function does. > > Signed-off-by: Yang Li > --- > drivers/gpio/gpio-ixp4xx.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpio/gpio-ixp4xx.c b/drivers/gpio/gpio-ixp4xx.c > index 56656fb519f8..1e29de1671d4 100644 > --- a/drivers/gpio/gpio-ixp4xx.c > +++ b/drivers/gpio/gpio-ixp4xx.c > @@ -199,7 +199,6 @@ static int ixp4xx_gpio_probe(struct platform_device *= pdev) > struct device *dev =3D &pdev->dev; > struct device_node *np =3D dev->of_node; > struct irq_domain *parent; > - struct resource *res; > struct ixp4xx_gpio *g; > struct gpio_irq_chip *girq; > struct device_node *irq_parent; > @@ -210,8 +209,7 @@ static int ixp4xx_gpio_probe(struct platform_device *= pdev) > return -ENOMEM; > g->dev =3D dev; > > - res =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); > - g->base =3D devm_ioremap_resource(dev, res); > + g->base =3D devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(g->base)) > return PTR_ERR(g->base); > > -- > 2.20.1.7.g153144c > Applied, thanks! Bart