Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1359611imc; Mon, 11 Mar 2019 11:58:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQvVsgQlYUJXGyfORJn0OlLoxknSKITmmoFX6Xr7UCXUAtA1j4fxRuai5KcezQEkU9U/HO X-Received: by 2002:a62:fc10:: with SMTP id e16mr35063807pfh.83.1552330698844; Mon, 11 Mar 2019 11:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330698; cv=none; d=google.com; s=arc-20160816; b=Gjaiop3pT4wG6kUD4btxfFQmY4xlUf4t88dJoohtsWD/G9Hs/rZAPpg8CVoQY35FvG b+lVeanBUu3mN68MfyDnH6tiaMNl/KSv8pHzHlsOmHV0YOglkz+A0cQDG9XWskJdE7be NavMWm+XvDKZz5SqkPnJIgteJ9CptoHHxmxyHiTsOPJfUWpde6XwbhhM3PRUDcU+wGf+ Jcdw3eE1lMPTBacU5OPh1sSy/cntx9ZxFHLvqVQ10Er9k0DnAJXVqaIlNcwUaXToCngN WJCTkKqaWaJtSyzQIhFh1/3mC+EFpOIN5oq1wZcHJ7mE5Ic5dHWA4kl7mo8S9Aqq/4fT nSuA== 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=6VSJ+RNr66a1UFRLk/Pv/p228ITHB9Hv/ughUda8jxY=; b=FKnE++gdTm4F/fGrzNk2Y886Rn4jj2t2tQkkG1J452tZl/gzNklG/yhTgq4TRiT+4e VjWO1AV5awrcbzmgvLJX8D7Xj5YPs23Wg9RjyA24usq2j+SFvgcWBm8yyczbkuLKzssY 3jrZUunnlObhFuxQLqGo699vf2LH4Hpz1EMuj/ik3QiIS7ShcDPJgOQENW/NWMt+cQKH OOvpVtneAtMw54ySYOeHC7KpTi6Fs9PzT5mo2FGzMusCpJtVB4b6sNGT5A0J4HkMPoOr 3eWbyiLaZ7LkHPPLFnrjpV1CbMxhT3noOV30uDbr13/Eqdm0qr9IP7LC+5IAUE65XIu9 Yppw== 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 r124si6139532pfr.252.2019.03.11.11.58.03; Mon, 11 Mar 2019 11:58: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; 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 S1728408AbfCKS4G (ORCPT + 99 others); Mon, 11 Mar 2019 14:56:06 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:53489 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728278AbfCKSzy (ORCPT ); Mon, 11 Mar 2019 14:55:54 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MbSTX-1gWYAw44dd-00bspD; Mon, 11 Mar 2019 19:55:36 +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 14/42] drivers: gpio: iop: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:53 +0100 Message-Id: <1552330521-4276-14-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:fh3NVv+DDhImpN2P94wWM/OTXPB/27tcdCwhRk2pGUYPKpGhgTo 2eenWqURDRbwCC5iDgwQwH40x5pwpZJN6odGmoJedyFve2er6kfDSJ0kFUtY0uGUi9lulDu ib8XBHjjw1Iav5bzkwEVDE05Xyjkl7br7PJpRYCTIkyZLaCn812NsTPdTn5P0I+qD3qZWqe dGBSETcpPDYz56wpaO0SA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:dAQe3WHFSOc=:IYuwzhNSPbz4MRHiLo6ZFr SifZF0gjHtJvJ38MpUB39SW++KCB7uDadiJ2W43gI7DOa5yUMi5m6i7taFBPMInKVoLJeRJqm e0pqXcPDoxi/zLHqAUcu8+TAsaldsYAwQsYw6o3Ax0SJgXXGSfoz89liXFxG3FqqiF/gzsaZh tzPOymPtZtTs1h71XXu/vRLQI7Bo/XWItAjhKqHKZ+hLKnbXMXp/1dNW5RVL3yRxtuk6O4fy2 q7RkHtDae5z5W9PXhXxCoqw0YRFRJPOy+92eRKVfSzbDVlXZOkJrsw/7C5xvAjuf39elSTvpK Mg9v6eY65xIpc1DnsUVhSdg76Ldf9uReKEx5oPm+BJsl6QiarGp8ty5cgbtXiteFm2AS0RwQB 9fXXVuIkQSmRTIkvPC5YnuwPQHqniD9AP770+0tyqWiLLAmHZKxDTxeVu0rUB+SYVQGVr1ueZ 5VLiGo1h1jSoqTOHkRK09TfS1tSq+D/tY5TZWWm1dgfNOgohocdF1i9LG08qta3ex1QIUawt/ kPLxoe2CqasAuAS7kHL8vb6pa557Y0T4V3wgDoNNRoorwVxwd8QQjFN6Jqs3/nOna42xuqbYo /6EsxflyGe8cD6XzKE0cpEZ07j++u7co3f7Hz9fzM4ghGTerNb/v3p4Cr40Gln5qMassy2YtG T8UZVdIaaOrAGJ39BB3cBin6DT+2byWWcpTftiF6FkW/wp7cf1oEvzQQSVHAc4NtSVZehtQVv 8R8Pp2wmv/a9UYTLZ4NM+1a/Ve6MH2o1Rc0tAQ== 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-iop.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c index 8d62db4..11b77d8 100644 --- a/drivers/gpio/gpio-iop.c +++ b/drivers/gpio/gpio-iop.c @@ -21,7 +21,6 @@ static int iop3xx_gpio_probe(struct platform_device *pdev) { - struct resource *res; struct gpio_chip *gc; void __iomem *base; int err; @@ -30,8 +29,7 @@ static int iop3xx_gpio_probe(struct platform_device *pdev) if (!gc) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); -- 1.9.1