Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1360160imc; Mon, 11 Mar 2019 11:59:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2GJ/gYwcCuPpDnYJO/CERybYI/9wLu1kKocK9DlafWEKByvqq6q9jdkFhAOJtWmELDyQr X-Received: by 2002:a62:12d9:: with SMTP id 86mr33881990pfs.214.1552330749193; Mon, 11 Mar 2019 11:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330749; cv=none; d=google.com; s=arc-20160816; b=lqZFVJmDkmhh0TgUiYSIxshB7UyXMJL5BYiR/n10MBUBZzRmxJ2V0YWKFrA+XU5Se+ YlRkkYowM8aghlsJJdZXFW265jRpZlEdrjVtdrPUmFd/KitIPQGt8TfnVdBKvxd95OGf 0WmELbSjpx+QeXJJ1lNtuq2XALndzAc1Lg+XjW4qPxRRVxA5RO3Te28mBI2f7WeQW41E qBA8FDrjds+cyDo7izB9HHdST6rYqCrKNgwJfYQkfxGNKWTh+cAQuRgehKOh6IN1hje0 rYIiGUFBuH/k3P3ec9Vn0Zs6E2S1+x6VfbjaHCEE8LgWTz1DAtYbvaOqyf9G22NCimHg njZg== 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=lBAmiwar9wX2MkVsceFdcv5Le87LzoAF/Xxf2eOGnnM=; b=HpK0cTDfd1sbTXqnaUQFkyZ3UK7S/CXC/O2nuvKUGzF5avV8SrOW6dePnItZes4tPY pRSx2PSNltvT+eWKtlj5GPUwsAZn1je2kfSfzc6supF4Av7eIPfIV18qMKvqzmwRulDW HC16kOpmMLRUnVncmoG+fO8fgHg7Gwwqv6iayxy5UgwXkZCE/zR9Co46mjXw+wnW2Yzh s0kHzm7ZswHqQLr3Yr8UqBxWS8QA+fvgwlHPOuvjHX1tSPBgWJnpU8rvwc+dwMqbvOdc U5VpT/N1TNJe66tuQBrGwsYGlldZFenhC2HQEX8MHdJfgIgQkOIA0gr2PJZnCJwBqSTw 3tmQ== 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 d5si6009179pls.56.2019.03.11.11.58.53; Mon, 11 Mar 2019 11:59:09 -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 S1728498AbfCKS6B (ORCPT + 99 others); Mon, 11 Mar 2019 14:58:01 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:35997 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728375AbfCKS4E (ORCPT ); Mon, 11 Mar 2019 14:56:04 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1McHQA-1gVAje1jzQ-00chda; Mon, 11 Mar 2019 19:55:46 +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 27/42] drivers: gpio: rcar: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:06 +0100 Message-Id: <1552330521-4276-27-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:YhOiBtIVmpqN0tX8N4E3k87N7AkekEIKSp7nDfPJrrbzzTUeGzC 099kEj0F6JTmyrTSQZOfQkPdwOJX+k8c6sk7QzppOt6tdzWP1ds+c4djDjITKSPbnF3ZLwi i0ZUuCMe9kq4PnT3UpXKImvUyUslgg8Kp4eYPQRN6+8PkfmYu+MYZztDui/5VMSa17sUaRN E75CYytYAFcCFtKXne5Ew== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Ypaxc9K2jiA=:qV82M3koWIenNG98cN1zMQ V6LUAgJUb9bb+kNzeAJ20U752PzKLviuv8oP9+wH26Jc/GLl7jND6W/UbaTejeyz0IbWsT47P 5Fg6H1UAW3FKZiWHyC/LiEkXX1MBlaAe6D7nkUN0hrlG1s5nPAy5JZScrM61Vg0HEXJggtFHS q6C6Ph4RzLAQ8TaQrnxsJ6Gl/99cPqJNcJtMiy9c+6ns5E7k35Tv+wlCO7iHqphVcK47O/Um5 jvZqTgWIW7TAprgRJPS4ec/jgjOgOVFKGj+XT53/w/QwqtCnXal9WoNcmvGYQRGID6cYbWwbb xNDHSaam377j3Vp4VkEiqPDA0e4+BAYNg+CAlHrb+5VPuL16g1tUl/iuLaqZH3Zee7l+gd/Zf uLlGBGmoDnHcgk6JhYvHApd3GdW5Jv+NHvqVqlZJlni2mjyCZlV37jjhLklIahpQf6CrOcqeM w/Nt1EJyj247uMgXEDiqBP6YnX4QIyvJ1O66Oy0dsvdTX9DbejegACsm7k1BE/+ztehHgrHM0 /fHfsfTLHirY956OUwMs1mmX0VlkGkWkGMrmwMDLIx9EdGox01OXQUPnQbVguATHh69oWulS7 2bfOGHTeUh9QcCpLO0KtN3tfIQKoIJMrTFLSDn+axIA7SSKw0f2wC68AYdq/Z0kWqelx3KBwR 0pEIXDFtGnvy6wRF6U187ItpJzIHPEdJDQN+Q4Bgpmg21gZfjW4lBRslkvg5lwz9xcQGCAEhu 9fNnwXirB5LmkXk5d/ef6iqBi7mdFxOtHlt0Iw== 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-rcar.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index df4419e..187984d 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -430,7 +430,7 @@ static int gpio_rcar_parse_dt(struct gpio_rcar_priv *p, unsigned int *npins) static int gpio_rcar_probe(struct platform_device *pdev) { struct gpio_rcar_priv *p; - struct resource *io, *irq; + struct resource *irq; struct gpio_chip *gpio_chip; struct irq_chip *irq_chip; struct device *dev = &pdev->dev; @@ -461,8 +461,7 @@ static int gpio_rcar_probe(struct platform_device *pdev) goto err0; } - io = platform_get_resource(pdev, IORESOURCE_MEM, 0); - p->base = devm_ioremap_resource(dev, io); + p->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(p->base)) { ret = PTR_ERR(p->base); goto err0; -- 1.9.1