Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1359684imc; Mon, 11 Mar 2019 11:58:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCLFmheCwBPcx4pIgRiXT/wkIFrZelpkGHBrHLH4xGYsq02SOvL16ljqDbKhJ7EGJjfNe0 X-Received: by 2002:a17:902:6942:: with SMTP id k2mr35072799plt.136.1552330705745; Mon, 11 Mar 2019 11:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330705; cv=none; d=google.com; s=arc-20160816; b=KZC7Q+Iw3JtfBc4PZW8Dz3yHLF0SRt1TKE7YakHngLDgL69WoS3VEW0XLSVf2wz7gn bkLglq1jd6tScc1MWDQ3UflSCnQzPKqxMoJWxsjkbNJ+52/+YveQiadiyNc60r4XMRw2 rzGeSrp9AcqUAHEvBHNo1SCcC0G6fYQYGDk09+49gPwwIwjHVRk/OYktJlKU6LoR4b9/ 8bDnDYu6/snBi521VljB6Fw2L+jo8t+yLZvdMwhCdLTnbtcRv/RK1k+VuHV2reqIRzZo VLxvN7mesxuSn0AHPvx7BWemKUNvRPUPNCGxDHP1DIENmcsG1hcidbJJ066S1bXZ3Awa v4eA== 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=YOJI2MT5h2iu+tjxeNVyAG0vOlXmUCXdLxryfArbMgA=; b=YDaX9/xFZGAR3yrTdqI2AQ0k5nSNEctdx9Xj5nQZrg6Lelbf7QQZa3C+if7K4FYGYi fftz+egi91R0aU90ELza73S9OaWpJJ0uCdCQobPwbqWdiXha+rexpmsdcmUr8Rwi7Qcy zIvyshpO+ebB4wRzOgP5tyldMpgd715VqczI7yTbud2sZsdceop9QKf+D3w+bYQ7bLqR OgL1wQV8E8DsdTsUuRZrNbb2N0N3fvQyD7J8krO+80NW17GAYINWydX2sC3VnOwJfxxl VLOrDrfyolny47R7fdOSAEIfercu2bw28Mnc+TYgOHL5Q2WexO8ENAco2F+TFhhjZOah 2t/w== 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 c16si5908582plo.412.2019.03.11.11.58.10; Mon, 11 Mar 2019 11:58:25 -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 S1728603AbfCKS5W (ORCPT + 99 others); Mon, 11 Mar 2019 14:57:22 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:43941 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728388AbfCKS4F (ORCPT ); Mon, 11 Mar 2019 14:56:05 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MfqCF-1gay1U2fSz-00gIfX; Mon, 11 Mar 2019 19:55:49 +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 31/42] drivers: gpio: stp-xway: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:10 +0100 Message-Id: <1552330521-4276-31-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:CsvzZnm46WK4n9R0bYTcR5/FI2O7Ra/ineu3763wIZ1J5bgpoR6 mqji+OsGcgKaN0Ki0XQyHNxDqVJMkhbXkQpLFDIKxq9Cx7KrSvWLmQcIwOvg6ecI6CDvX+i DuFupJL2+6hTvDKtKnjkYfXxXGTLtkkIfdnUc0aS1j+ugJYZsFP9BwU27BpRtwAAM3Ko9Op TsMSIFnOcV2u4EfVNNPVQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zYW9C9o+NHQ=:gdxSfDKYhOpiWSS/CocjVg UN2H+w2YoD9yKqCzSfpu3plMHDzoeTfnWEjoWxRkdUrCnU+Ytq44rcUQ47c/OVR/bAmSIVxCz Slz5RWE0C8ojwnDy+zxoekj5q7RcCevlF2LW6mAp0aJvCz+l4ST8ywk35fyZKayUQ0MGX7V4w EVs2A0SGjT0KSfTCo+YlsFzxKDbxiQ7oEUjf3/MrnOfJOTBr9i4H7oWYjCdcqt6pOlhI5LWRe XZLv8P8AdG2+mfyIjl41/HSU7l67WX2+/5coIVuKupjjFPjZQsq9CkZ53WdmfcnrkJCcXasOd guUaakgBOwXO/XjglHQId3+H1ep8yCW22d5wLWMt7VUvGTn/2opbnTig4Laj6C0EY3NMZsnRP J2bwzkyu2vtZLTyfJU2gggTNcWTB9zv1foZuuJIW/3iudwEl2kkrCJesDC17N/jiGV9qAB3eF E/SMFtP17JdFuuYE8DNn8XtQ0yj5S6fXx8RupyidjSWXsZZnT5XBtBpxvM8calxvbkIfqYenh DwsMe/Siew/fs+lfEK/uy3ys+TOcEZurS7HojK1WyMk4ltDdi4FzMweDytMDzKpya8L8oJ6d9 lBS1caJ0FUAMWq1icSCazxqctvvcK6Mjg3EgXvEfajl7Y0i06wEN6dGorFj/oOgYQ7hR5KoIa B5rQwdXMhhfSKAZEeINECEfwmEN+fnX7NdIufqXqsOVWcvMEfi7d2+Tqa/GvwkX19CXXQz9hs ZnGIZXJetPX6r8hLn2uksXMAJafvLFiiFBtkXQ== 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-stp-xway.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-stp-xway.c b/drivers/gpio/gpio-stp-xway.c index 1997208..8a319d5 100644 --- a/drivers/gpio/gpio-stp-xway.c +++ b/drivers/gpio/gpio-stp-xway.c @@ -210,7 +210,6 @@ static int xway_stp_hw_init(struct xway_stp *chip) static int xway_stp_probe(struct platform_device *pdev) { - struct resource *res; u32 shadow, groups, dsl, phy; struct xway_stp *chip; struct clk *clk; @@ -220,8 +219,7 @@ static int xway_stp_probe(struct platform_device *pdev) if (!chip) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - chip->virt = devm_ioremap_resource(&pdev->dev, res); + chip->virt = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(chip->virt)) return PTR_ERR(chip->virt); -- 1.9.1