Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1360883imc; Mon, 11 Mar 2019 12:00:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuuPP4R/sk9Zj2vLxxtqvFQ615qnhOE5v5Y8K35mlG7OW60aTf7ja1hRuYlo6fpLOAT32U X-Received: by 2002:a63:ed0b:: with SMTP id d11mr31097000pgi.435.1552330812242; Mon, 11 Mar 2019 12:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330812; cv=none; d=google.com; s=arc-20160816; b=dXgFjo0Z++HswtQA8FM07aBtpMy7aypPU0voOLwrdxFg4GMwDmdPNa8NdbeJ/5qcxT I2pNd6RhoMxULQ9LROuA6BBZKx0hjwI7ep93nyo383g/0HhuGcgK4P1X5cTr8tXpRLJy P36b4ycbUWlBe4unk9qBitR5NP41e+sb+LyI86SPhkVWq/9K1/ipeliphmdESCjY4dlk d2mQ04y/3ET74j4sam7gDDGVUdYkxqa7cFwzFvymFX/ok6/RkKmp3JYllo1VJmSZLC0c 4WPkejAR3MjXikQR0AbJSAqtHGCyqFxFNc1ZBGRse6jpuA+qqzvPxCZztXSqG81R2+Ta dZKQ== 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=egxaJTs+nA02f354hQwsKodNuqL02ewANpIB7kRUOaA=; b=0QaQhFbHF3RZfwnTZv1c2RE62UeqUObUbg4c9HZjZkrl6QJzPwRTub5hItQLga5LjW W1350MISgOjlcyvy9Fe0avMqK/PZzXv2WI6Ag33UY6yIBUzgmHaJPnEB9UB24Uum9UWv IvvUZkbrwkkijLbaTRHDkFVwvyaoAwDQPkuMK95eU+igDVoIXvGUesX+w+/96iUfTnWM iofOAXDPLnl4Iu+NxvUVU9MaRwgKUM9imYFKrqxlmw8fY4MZjEE0PvZ9fMTWI27f5N7V 5O/OMvvWSUmxTnwXBgW3gazveOkfRSJXbCJvpSIIpe19rFcmp9U0IVZS0DLzNZlGiqpu oKMA== 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 a4si5463840pgq.471.2019.03.11.11.59.56; Mon, 11 Mar 2019 12:00:12 -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 S1728329AbfCKSz5 (ORCPT + 99 others); Mon, 11 Mar 2019 14:55:57 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:56969 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727501AbfCKSzq (ORCPT ); Mon, 11 Mar 2019 14:55:46 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MI4cT-1hFDeP1WmV-00FFvN; Mon, 11 Mar 2019 19:55:30 +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 07/42] drivers: gpio: clps711x: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:46 +0100 Message-Id: <1552330521-4276-7-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:/RF4+Rqgwp3EesiMym7nA5aKa7MbwCv2FVWOK5zXCDf4K1LG8S1 Oc4U2uxxjfsgBLRUedR1evw1MShNKZOCv3vTACVu1PAZH1LDP23rFRXTkUR7qU+CSHtro2j t+DR9CHLHmdCMlMuZD6cj+uwpXWap3heuqju3RFq6fKgIuETYlwgQdmlYgJ/+rT3sj5+IhR D+JcPNjBYP4CKwa3gdlNg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:3fLAYJCxLzo=:zkKas7Ex3kcKsSg48vlMcC 9Uj0T4jp1tnk7NG2974/HskwKeD82TyUF89bHFBHtVYuLVrN5iEiCdcEHh/xh3cJATKRQFb/5 6gxGsQBaNcXKbM4y/Xgyd6Ug5q8MbqOh8K/Kjohfrps/gDoXTfNedfM/2SQbziHiWiwPoenk/ drzgWHLjxXVRwve0W6Ka2ClFBUp0weLzZuL6PdQTifkjxMyj3gvp9h7VDgjkSECC4FiZu4J07 WjXX28F4EIsXC/7dyaVJkt/he3UFTgOtQ7LmsNcxrI77ExVnmio0w9CK8nsJQ3u4XOxLba6kC VXSRdda0T5fat18VnoEJgLo2aPb94YckNYHpASB+w6OW8ZtHV2yWaE0XfPBzyYuwK5+gBbGIC 6tkHijCKQJKt9+BhBWHKaukNH4bAmIZPCNzXcCIcIGhjfozIs1t4+hDKjRMVwbzyA1XZauRI/ EwXVUTaAFUuWAusMacBQ65GiphgGhpPSwGfoS3X+mftw2Jt3Yf7I6KrXa9lB4J2kUnIP/ats8 Aqgu+GA1Zuu9CikQ9HWbw3CDZ7KBiKL1rD4yjcMqomv6fL6en02CXyrTByz+CXQtTINHVXgZz V9nb3F1otONzOUEpJXISQlc/c5KLuPAAt11CfWx0U7Ik1H3q/lG8ZHdSCx6Ig+5BbbRaCoLR8 9wE+SSGLXjZlKhhAl/0L2hLOy4uXN1VP2cU6mzbvPrB44vgNvShqNLmFJPWir7pioFwTprO4Q Uipi8g4y/oO7IOsj3ECw22JjuKyntRRFgAd6CQ== 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-clps711x.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c index 52fd63f..0fbbb0e 100644 --- a/drivers/gpio/gpio-clps711x.c +++ b/drivers/gpio/gpio-clps711x.c @@ -19,7 +19,6 @@ static int clps711x_gpio_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; void __iomem *dat, *dir; struct gpio_chip *gc; - struct resource *res; int err, id; if (!np) @@ -33,13 +32,11 @@ static int clps711x_gpio_probe(struct platform_device *pdev) if (!gc) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dat = devm_ioremap_resource(&pdev->dev, res); + dat = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dat)) return PTR_ERR(dat); - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - dir = devm_ioremap_resource(&pdev->dev, res); + dir = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(dir)) return PTR_ERR(dir); -- 1.9.1