Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1961430imc; Tue, 12 Mar 2019 04:25:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRTe5CzZZmoe403yxK+OyWObpQaAvwhgcjt6gRdWOHCrj9ah1qXME+VVU05a3mZyyrqM9s X-Received: by 2002:a62:4754:: with SMTP id u81mr38474753pfa.66.1552389956038; Tue, 12 Mar 2019 04:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552389956; cv=none; d=google.com; s=arc-20160816; b=AjBE6XuiK+kPOgwyfl2pU8RHNyLY2YEso8WdOJoTJiug4zr3ATrPiXwakjIVdcjTvG 1Lko4HHtb7gNmBqSJStBZPG8eO15lrHQGArPIQ1IFcQIA8WfCwyD7cafs/wX96SEElE6 Q42DRDVKZVRxFZ3jOschABA2KiP9qmPz9J7zVDyyPLQgRwkMIzNxpBpzYT6PrNzVoq90 jgZR7qUcCt9MkgbBCIKMjzshn+Bxv6nCVb6gEIMhqsJS8m54++PaSPzq++B25Oi2HGUb 2GqJGAjI8HfJxJF2vzOUsm08QSak77zwjAtFMTPDmUlzm+G+b8ota7sdbQ6Mdl3nDfpt mF2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4F+rMkJTHGYdfzngaJwz/m15u2foSWZH1y0nn2S7j7k=; b=Qcr671Gb1CCvrHD+U9UcLktOCz7uRGNyRVyoNYUGvZoQyaYZNzZJ0dFRHo1p0OAtmT ds3G1iB2J9DXyWH7WBNNLYsEa9bQDszkYINyUUJ/LVZzt/xea8vMZuJAtLfr72FhUNzZ QB3iM2NQn+4q9CG0gvTnA5NDrBCMCkpGqA/XKO3rtsvhvV62Ke4O6rZN9NjFBII4P1Vs WLTVop+A6ZRh4frZlQE6OfMmRU6w0wdl31BdDUmJEA+koWfj5i6Na0i5mSomSiQiu+UW rYgMU+rfIMJr4BPQ5M4xnQVXrVIyoOHWei8poFUtoa4r7eJodsCmXjZZhmClBKKG6Dwe cKlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=edAk+miC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 39si7987642pla.214.2019.03.12.04.25.40; Tue, 12 Mar 2019 04:25:56 -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=@gmail.com header.s=20161025 header.b=edAk+miC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726506AbfCLLYD (ORCPT + 99 others); Tue, 12 Mar 2019 07:24:03 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43139 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725792AbfCLLYD (ORCPT ); Tue, 12 Mar 2019 07:24:03 -0400 Received: by mail-wr1-f65.google.com with SMTP id d17so2237661wre.10; Tue, 12 Mar 2019 04:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4F+rMkJTHGYdfzngaJwz/m15u2foSWZH1y0nn2S7j7k=; b=edAk+miCItdgM97aIIecEVMxCXNc4bgDmr0jikU1aEns/Lea3uTQ6KKPjPrayPHeNd iOFmO6oosJXj3PQvzGC0oV6BBSHytnM3K6tTJl0YoNWcs2UD7kt3UQlI7N0JJUW9QaZA BPI6MdQ7HJlilAYxDr45QyDDJn3HmcYpc4lc5T3KWs5VwIFXV3Wvd9kYIAtJ3b6cuRPq 8Qp+4PWBW77J7Z8HUlz9FNr30aG4ENdDByl8Dqtgivel2r8y3l+JwjsU8MW1glTUjaoQ +kVvmXKki2nVRqEAhoJjlsa/Kb6u1A30xKLqL9+LWsVHB/fM31EUH/2DDGBa2fCrb7OX XzzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4F+rMkJTHGYdfzngaJwz/m15u2foSWZH1y0nn2S7j7k=; b=q+yZTXBhTrKevhJLxrHPQXq5xqq9MfTS5cLkMNqIiOlSyihBEM8SXi9zmU8cQ4/XNn ZW8xj4aWYOGMw8a2nqkVSALDlz9ucy0n9viv3hPLgCqnASLmCIksIF3Ha8k2mF0M06ws EfgUdv6KbnVgxKcBMs60drldmHYH04jaXk/pVukxqcA42Vop5YStsNGe1E241y8xWlrr v/ELEVtFrAZRxfFv82BUejPsc5QT71BAboENmGPi4X7P6FqK7eiR2ARStCUrHFPG6kJ1 cowPQZE+7QZG/WgpVZxfcpx0be6rL+m//AQMBl/ul10CmW6T3P8kkAzAjNjGmpQ4MJFd lZGQ== X-Gm-Message-State: APjAAAWptoS3fDnc/LOFDw2RDVoBZfDuK+fU5r8I1AIEl6MS+FSFkdHj fmsamoGK6yG4+od945kq4QM= X-Received: by 2002:a5d:5504:: with SMTP id b4mr14041271wrv.137.1552389840531; Tue, 12 Mar 2019 04:24:00 -0700 (PDT) Received: from localhost (pD9E51D2D.dip0.t-ipconnect.de. [217.229.29.45]) by smtp.gmail.com with ESMTPSA id q135sm3561408wme.43.2019.03.12.04.23.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 04:23:59 -0700 (PDT) Date: Tue, 12 Mar 2019 12:23:58 +0100 From: Thierry Reding To: "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, 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, vz@mleia.com, matthias.bgg@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 Subject: Re: [PATCH 12/42] drivers: gpio: grgpio: use devm_platform_ioremap_resource() Message-ID: <20190312112358.GC31026@ulmo> References: <1552330521-4276-1-git-send-email-info@metux.net> <1552330521-4276-12-git-send-email-info@metux.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="raC6veAxrt5nqIoY" Content-Disposition: inline In-Reply-To: <1552330521-4276-12-git-send-email-info@metux.net> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --raC6veAxrt5nqIoY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 11, 2019 at 07:54:51PM +0100, Enrico Weigelt, metux IT consult = wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. >=20 > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/gpio/gpio-grgpio.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >=20 > diff --git a/drivers/gpio/gpio-grgpio.c b/drivers/gpio/gpio-grgpio.c > index 45b8d6a..09d3dac 100644 > --- a/drivers/gpio/gpio-grgpio.c > +++ b/drivers/gpio/gpio-grgpio.c > @@ -333,7 +333,6 @@ static int grgpio_probe(struct platform_device *ofdev) > void __iomem *regs; > struct gpio_chip *gc; > struct grgpio_priv *priv; > - struct resource *res; > int err; > u32 prop; > s32 *irqmap; > @@ -344,8 +343,7 @@ static int grgpio_probe(struct platform_device *ofdev) > if (!priv) > return -ENOMEM; > =20 > - res =3D platform_get_resource(ofdev, IORESOURCE_MEM, 0); > - regs =3D devm_ioremap_resource(&ofdev->dev, res); > + regs =3D devm_platform_ioremap_resource(&ofdev, 0); Drop the &? Thierry --raC6veAxrt5nqIoY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlyHls4ACgkQ3SOs138+ s6EWCQ/9EHCXbXLCc1FpDnsDfyTyDxLnFG5COjAUiU/kfkLGrNOlsMnZfoGEcyJs i8EJl62h3GZ+VIfRhnhg+91tNb7zXVi0zt7uZ9aMn0CBomrgL38k3AaKhr7FLmzo zW3eXxDPIoJSXK1SAyPxfKpw+WO4XY5Ztsx1UOQvdaVGkqNVRKbjtDuKbJz7Utwk x5L9z6mAsfW0MQ7CWI40tTVjZsNcCLv+QKrE8/iLY1+nrE6u0BL/D3ppt4grD4Bv UqECNlPWPMSj6mUoluJBq2FMvZcWiYAxqRDCza/CnT/j5RlGYWBPfhvKlfnrUumJ 1NCqXTPMSq125OcxNZwkakUtwVCl05wX6tXBkOuJrSLd93WN0b1Xw5ifPithkTCz 6XAd6/xfOnVUnFT8KftCLTnCF2mSoFLxY4jHDrdHgXNn9Xj2aNwIu8oiTqHkK/Y3 kuTjC+wOCiaCqEf817CMHmg6tXzxLaCM9sr+nzLrJkUL9I7ywyhYa/BYKOHpqWA1 Malob9RzkEG8jr72To6QZXqqLZGaK8iACWj2RIl+QRAs8P5NuSNO6zKJVoO5pe5P Mp7owrzdbp1zlLcyhmrZDCdLaVXfYtfza8VpxBTfvlGAhV5uJb7ihLfXMD4CWEHj frCV48106sgIZJI5I93fwYoWeaY76tJaPDtRQiiV5YOEvoPcM3Q= =CAJm -----END PGP SIGNATURE----- --raC6veAxrt5nqIoY--