Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1358574imc; Mon, 11 Mar 2019 11:56:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMFbNUK6ciSCAVekNVqPFzFPPoZP06iAM07KMSUZ6CEGy+J3+em4g3ilUzkdJftK7EYjy1 X-Received: by 2002:a62:48c1:: with SMTP id q62mr34590896pfi.113.1552330605172; Mon, 11 Mar 2019 11:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330605; cv=none; d=google.com; s=arc-20160816; b=uaAClu2VD0w5GOMWqqIIM/MLekcmt2x2sY2c+PTVJP9SAz128Q2YIJ2yj+/rip6ays 23vIYAvnMIgIK8XYK2KSM0rJuVwDZ8E6mwwHgivGjXSng6qE3+2NZWyzEoR9Z+0Uaxxh uO5/XmxeYuv83+BwxtP9s/uogX6PWNvzVGPd6xckXC8oa/bv75pWKqxhKAu3xGc2qQot Wa+MLx2zTthZupUnqJYzOYKhJFiCQp/yDIFhbztTusT01DWJnsk3eRwYaYqZHRc6Wg8W zFsGuOp+mswC0NgdSvvnB6uSMg+kDMW+5dtnth8zVrhtYdL2zxORJR9MQ+92iV0spwaS iKKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=BXFKBZaB9pF/+nxi2zY+TRK+Utor1lZTAEpzpE5hLY4=; b=0Hga9Am93IFQ24j76gcO9xZBTdN+VGnBbnhZ2GGdszJemouzSwAbNmXZzFDofsfHDX lumbDCjFRr8E4w0B/qxrAP9odSh3uIkwDSqECMcNsjazyhknSaGSrMLfq/pp5oli3l8X 3iYKy1eBTuTx51dvXM1BQyfTh6kOSOm4Ychf5ktg0fGffaYRBcfWs8SDTVcU4TnEzqZU vOsAYrb+wGLP+JO9FoaCRAnrL5SuMMbbNUCFgpjQ9OmDdgXTT8Cv4YmN5sJeA2PaEj51 p9Kv+aVem/agZybxMrACmIF6iWRGKZ4oYI0y37TS7GgTMRUNPyyJWfKOOfH+h5QQ0bP/ J+pw== 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 cy1si6401443plb.429.2019.03.11.11.56.30; Mon, 11 Mar 2019 11:56:45 -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 S1728386AbfCKS4D (ORCPT + 99 others); Mon, 11 Mar 2019 14:56:03 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:51527 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727611AbfCKSzw (ORCPT ); Mon, 11 Mar 2019 14:55:52 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N2EHo-1gv3Ki1VhG-013cSO; Mon, 11 Mar 2019 19:55:34 +0100 From: "Enrico Weigelt, metux IT consult" To: 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, vz@mleia.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 Subject: [PATCH 12/42] drivers: gpio: grgpio: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:51 +0100 Message-Id: <1552330521-4276-12-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1552330521-4276-1-git-send-email-info@metux.net> References: <1552330521-4276-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:s6D93lCp6TjmlwWHE0LPTB3uwfBHWA3wRlbxYC2/ePCwu+67PpY 40Uu6zN3AEC93yjI2AepCtmDdHKXCSIv4f0iT+Z+JX6goB5glNPfcH67nWwVR/FK6+1FLY+ G/7yJnoa99c80eDxw5MvgJqfOvxQb0EiOF+UO6ZcmfuTARj7IhIC0nkgaqTQAuewpDnXeSI 7RxpG1YafXgoekd3rJtYA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:rozpdole5G0=:eYCGBnHa/yl7Q0RXq2kgVv atuNx/fbrkDZHbEWt+SqGExFrhum4lzxLxqnTG5Pp22D1dbCLtcHDKJFMaXVt4Px7YZ5H2Qmh WliCa4GdCahHgWBDivvWQ7zT6kol0fU0cUjrr1qNWUtAwsbs4gt1i19jgRPoFPvYJcX5o3IRw v4XoQQjP74PxOJABl9b+3TBEwqVdki4D1Drd1YfyZY/eJZaFRQFsJqL32xMWHmXELcB9uPWZg +xAEdgz351J7EEpuCs023efOwxvS1iS3nzkLt46+vsG6CvGUAmq6Mu0VU8IvnR+vngptb2nM8 ONUP9Kl5TbXBaABfFjAQdXKcwfiQvxDTNFSEUia7KcBU9842rEXCozba4mshgPobn3MeRBCOs s2dFd3mzY2E/FhrAirCPXqRkzVFKYII/lcjtQ1vgy4Tju/u/TWpveAC7WuvqBdq53PzEcnQjN 7TD+JClk07D0sIxRaGKLPwz6eV0jATNThkSkjaVRUdfr+gP0NP0YoIdZndSxZUt+/BseYFTQ7 dGPmUZJn8WYhK9MbwoiNi+ZPCEX8vjjHJAixfNApH8W1geAlO5d1aoMlxiD1MgmeDgE0B/wNk BrpFxf0zWSq2lwWd9yJLcyz5WnsfY6gOjDXYYS5UQp9/HXxyrDM8ig2ndx5vgRlBrRZQOj2Fq 72BLeD11NEXixMpCYgGCqauETBkfOauf0IWcxCvW9IVrawLS5QyYqm/dAOP2k5gOtKiPMoZfM TgDHXOgV4zVEq2r1h1ev4t3Bz9pLsB7innDl/g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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-grgpio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; - res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(&ofdev->dev, res); + regs = devm_platform_ioremap_resource(&ofdev, 0); if (IS_ERR(regs)) return PTR_ERR(regs); -- 1.9.1