Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1359580imc; Mon, 11 Mar 2019 11:58:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPN/rxmZClNPfN7nAnefIMJc+KQJiWFxwZVKyv79eZ3gMyn0m1EB77XT8Xi6X5p2Qgbdoy X-Received: by 2002:a17:902:ba8c:: with SMTP id k12mr35907802pls.193.1552330696263; Mon, 11 Mar 2019 11:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330696; cv=none; d=google.com; s=arc-20160816; b=lJ0s6/cCi7ZhEwRW1xEIfCP0vuRVDvSH3pQYt7ycanFoWR1wE1T/0T8vtg+FRDRgtV QFpYVT3faCFme6uZNBudPhN453isAEvS7X9/TOqr5YCdoIJ0z2okwsFPk2k4HYCW1N2D XHhHSRYBA530A0obqQJkW3vfoEFZ8N7wfrd4Qm+qBqQyAABtLPpKUFPopygFN6WJFmt2 +AOzRd82LLkhjO/T+vG0BqplVtj/pUumdS4DoySipeZ1lPRSiwdNgZLWhgKcik8bsDss D/RXXUi4+CI/OZQsi0eh8qZ6wLgLZsFO9UTNw6NiujeP/Tr9jrqYOoniSgAtJSqOMH6C 98LA== 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=bGW6IbV1NJLS+LctuRn4W2AUL6+fFgV8kQF6d87UUEE=; b=urSS5r88OcGnU4uqFBD5AGCtNBZ7dNeLW+klg3dc9Kw1VQDL7S45+lO/F4KZwzeVY6 UvPJ6RmCYMymL8pNbmyPRRGLa3W9i7t5rymgWtpBVjrA4A3BOGuY8LlJG+GOL64sWy7I 50zLTwOsnKc/ljdgLXKmjs191ytkU5yoFT9PzlxQZGF7SJT3+jCRYdQHA9phJVabpg6a PG7QRUXM5ln9NxXOiWjSlvWfOIxisR4f5/1L70OIILKxBM+e3LthOtjNonMTTfVGWi6f 4Q6lUYGATmewGWFTMn8/QT/aOusRRYr3ejXphGbUxVX9DXYUmWKvp6yyv1JG2kM9ZIf1 Rnyg== 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 t128si6052561pfb.151.2019.03.11.11.58.01; Mon, 11 Mar 2019 11:58:16 -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 S1728553AbfCKS45 (ORCPT + 99 others); Mon, 11 Mar 2019 14:56:57 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:55205 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728422AbfCKS4K (ORCPT ); Mon, 11 Mar 2019 14:56:10 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N64JK-1h17sA22Ke-016O8s; Mon, 11 Mar 2019 19:55:54 +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 37/42] drivers: gpio: vf610: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:16 +0100 Message-Id: <1552330521-4276-37-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:Ucrc1rIZnt/p8T36RAg8ZJhwLTig6Ec+rVO+L0FTiXne/Om1/65 6b60/8QyWOqDdAfOAiDUYkHIa72Hzq9OGx1WD3DsxvdGjve85qnjdqtkhscew1ojBbKh5Qv iJBiGzS+Vix1eeimkxP9xPQqoJtfJx+L8d3ETxbNfw2YDI5+zuXnIkkRhCXfvUJdHkZweDC 2O3sTGIkZMnHqPfjVE5kw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:vJV42iPBVX0=:Ick/bR1C4rhZKtcuiYMB2H vxIetXYMKfLIX+83l4yZ7IhdaSxKemJuk5EgQC/RQtrunyCCaT1AVVOoieqgdJUGRETsN+hk6 OrnZx/tTxyjXbzXxr0xw+tLQ1Rnev6IyAChaj6nE+poxEqHsvD3PxMiZRJCxF5QXc2Ff2BvXd svvkwqMTwr1QHKqVdP0HOXfPfUr46+m2wBsB2+Ll7M4Wlzl85benhxKXRVb3i2Yzr4xMTOvfQ ZvsNNooP7O4JhS7FXrj/YgBM1LAJLO8Ws6RrLKH18XpBqOGqCK1IuSaOeIzDsBh1b+poCKCIy OL4Y9wowWuFEajPD7SjUt7+SDVQpyKAzNmf4LD8fDTfsevteTj3DTrDROJXeupUcK1eFVg1GD J7IqhsKsbilfY99v5W/l5JMoMfOF7RyH5pEh4eOGA/yu1Ii/pJQmvUUdmj+7UZ1c+ZQ1PDHYo l18VU7nDQP1phv43RS/yDvEDbokCqXkOzF5SEYo9ip5HgTY3R5mxjEcrJNDJG74/ZPl85L/pP begw4+MnO/L4X58MnhrJTzxN88rH6tpnKqL/6jOjK8R9/piucnbdTNlJ38e6332xFNU3JInMb /OyNpfLT9dHK3bWkdpmI9QuvPXVtBikWEzAbPB3HrVHkwlQAvdU8/gBFliTCK9zxqeEE0YRUW jSJBFWxra3mKbRaqYkEY8y7PIg/zhGQysq7ZqxKzl/LXEd4cvZy1vp9ZtYuT/QCkS69gfdBD/ //m+aDWMt6jQ0m2CMVJp3E3/VU4F3ZPKOQpx3w== 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-vf610.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index 541fa6a..4b86a2d 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -251,7 +251,6 @@ static int vf610_gpio_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; struct vf610_gpio_port *port; - struct resource *iores; struct gpio_chip *gc; int i; int ret; @@ -261,13 +260,11 @@ static int vf610_gpio_probe(struct platform_device *pdev) return -ENOMEM; port->sdata = of_device_get_match_data(dev); - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); - port->base = devm_ioremap_resource(dev, iores); + port->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(port->base)) return PTR_ERR(port->base); - iores = platform_get_resource(pdev, IORESOURCE_MEM, 1); - port->gpio_base = devm_ioremap_resource(dev, iores); + port->gpio_base = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(port->gpio_base)) return PTR_ERR(port->gpio_base); -- 1.9.1