Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3379436yba; Mon, 29 Apr 2019 00:56:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPOM3wTak2RAlloqHaE3T8hhsn72UBsPKN4dsLyx2mNdcWucBuA7lqMTK+WFc0/IXSxOAO X-Received: by 2002:a63:c64a:: with SMTP id x10mr8297335pgg.195.1556524578869; Mon, 29 Apr 2019 00:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556524578; cv=none; d=google.com; s=arc-20160816; b=bjxYXBsLOtlcEEBccL+xBPKUtWJBWmbeGhqO4CgYH6c69PSRQ/yF4gLdfa/yVU3CVV bvMyyCbXCly6POT5XIzZOHkFjIx29eCT9S+RGT3JXh/V1bgZ0wPxMnpw/WuizbTcqIGU +3PaxO9sRqZk4szK/q/mMhAGT2bNrcWvhp6MCmIMnJWD9PwbMrDunUkUw7LVyFPspVzS RZcFRwqVf2n/e32GYDjy03XC/tYyL3UnA+ZMYe0JGUAqnh9i9kewBI3Aj4DqrtP/QSxg A/tPNecOOY/+akuctfh7T57gTrX3sc1wSIxpztOEgufeoXP1i4Lmuuaa5f1ucf3zJdBl hgOQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lTE8ZUe/zLng+ZlAw7wli/wZIDmLwzaqTDPEWlKoyEA=; b=Xpd+LNRrNWt9jjClcLhqd1MLTIMBMKGYo10iSPYtkPIswlo76ox+115gHV7oOppjZr IHGxavJakBy5WBnq6yB0o0hS6s1RG1k+aYUasP8S/+KV0I2eSUPhwBFsJbkb8V8CMwoQ 0KOkMHhkybpkphpuRmjnAKtgH5y6kmVBcvQFGJPHzw+S3dhz+bhw2L3gtZaiTZ/Kvry+ 5Ae0qfWuybTuoyNQg8z26MGQ5O/bNntSZJ4eSRREpZUSPoN9lWh85whHSZvUlStPjnGr Uv4qy3kZcMdfkB3JFmNgUd2xotfO9hVPRpmo28nX4hStSAP1EEgJ0FnvmSv23uGaCR+E mY0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Qx62XkIJ; 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 l20si4815285pfj.71.2019.04.29.00.56.03; Mon, 29 Apr 2019 00:56:18 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Qx62XkIJ; 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 S1727560AbfD2Hxa (ORCPT + 99 others); Mon, 29 Apr 2019 03:53:30 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:33396 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727498AbfD2Hxa (ORCPT ); Mon, 29 Apr 2019 03:53:30 -0400 Received: by mail-oi1-f193.google.com with SMTP id l1so5721365oib.0 for ; Mon, 29 Apr 2019 00:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lTE8ZUe/zLng+ZlAw7wli/wZIDmLwzaqTDPEWlKoyEA=; b=Qx62XkIJWMVhX1tTSZWgOrwz8HqepXlV4Z8D/gGYVWMMi3Fr7nKK6+vdKy+/pkZKQR +V9oTnF1Ly8xgazFAj7rw9JQYl/fZrD2f9Tp86WViZB2TPAp3ng40jFlm9coh/XWAF0u DrSvLYAd0KRFq7iMmeut7Hb5l52C2Zkg70OSuASvoSBQHh2TjoQeD2ieWNAHaLtf2HHu ytdoE8LdVTQ6oRu/1CuQeHRRtoiI3gsBuf5wTuZGmtRVTCin7OvAvRvYBxdxCISdByDa 38oNq9pBe+IBCUUuNxTQ7S63ChjAVZ148iac6aVUHuBuz8kEkRvvajvtAGU5Fut5OmJ2 iLxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=lTE8ZUe/zLng+ZlAw7wli/wZIDmLwzaqTDPEWlKoyEA=; b=Ps62lKCARRK7DdtLtGPZ8C3mTlprYn3o5UvIQH63hcutYiqKtwTl1VFmHbUiYiCSyY NkT65ATjR8DIqZX8SzMHG74+2ujk3mHiA8boNuT1bbUrAwNU94j5fia5AjBkv9iY5mRf CIMZnvdqHJwVUv+aGQHua21djfF2Nh5c3Zob6u/XMjuar3xFquKEBv24Y3bphwrZHkh+ dYE6fcl7b/qcP4d4HcDGFOvSafZ87JHkloHxrg0IzfrwD2CHzgTde3HUrNjEw3uR3AIV Cz6hd+SoFqhszpeDg44F3addl3NXlOYZw2PzQgp4g++ItNbVlt6fUKfTjUtaeydSrnz5 piLw== X-Gm-Message-State: APjAAAUBrf55nyNL8VR1QU0K/PNoYx6rNsf1rqS4OmKzDf7g97AFTuYb MKAuYfDHIGwzQ/HbNAhe3VBRplKJDgL/qlSsYoJxxw== X-Received: by 2002:aca:f2c2:: with SMTP id q185mr9556506oih.147.1556524409451; Mon, 29 Apr 2019 00:53:29 -0700 (PDT) MIME-Version: 1.0 References: <20190429054948.9185-1-andrew.smirnov@gmail.com> In-Reply-To: <20190429054948.9185-1-andrew.smirnov@gmail.com> From: Bartosz Golaszewski Date: Mon, 29 Apr 2019 09:53:18 +0200 Message-ID: Subject: Re: [PATCH 1/2] gpio: vf610: Use devm_platform_ioremap_resource() To: Andrey Smirnov Cc: linux-gpio , Linus Walleij , Chris Healy , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 29 kwi 2019 o 07:50 Andrey Smirnov napisa= =C5=82(a): > > Replace calls to platform_get_resource() and devm_ioremap_resource() > with newly added devm_platform_ioremap_resource() for brevity. No > functional change intended. > > Signed-off-by: Andrey Smirnov > Cc: Linus Walleij > Cc: Bartosz Golaszewski > Cc: Chris Healy > Cc: linux-gpio@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > drivers/gpio/gpio-vf610.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c > index 6f6558715b88..30aef41e3b7e 100644 > --- a/drivers/gpio/gpio-vf610.c > +++ b/drivers/gpio/gpio-vf610.c > @@ -242,7 +242,6 @@ static int vf610_gpio_probe(struct platform_device *p= dev) > struct device *dev =3D &pdev->dev; > struct device_node *np =3D dev->of_node; > struct vf610_gpio_port *port; > - struct resource *iores; > struct gpio_chip *gc; > struct irq_chip *ic; > int i; > @@ -253,13 +252,11 @@ static int vf610_gpio_probe(struct platform_device = *pdev) > return -ENOMEM; > > port->sdata =3D of_device_get_match_data(dev); > - iores =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); > - port->base =3D devm_ioremap_resource(dev, iores); > + port->base =3D devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(port->base)) > return PTR_ERR(port->base); > > - iores =3D platform_get_resource(pdev, IORESOURCE_MEM, 1); > - port->gpio_base =3D devm_ioremap_resource(dev, iores); > + port->gpio_base =3D devm_platform_ioremap_resource(pdev, 1); > if (IS_ERR(port->gpio_base)) > return PTR_ERR(port->gpio_base); > > -- > 2.20.1 > Reviewed-by: Bartosz Golaszewski