Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1361213imc; Mon, 11 Mar 2019 12:00:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPngTM4XWGbV6sY0X5arK3GOiKABPHWfbLRs0yP0yjKA7161V8QwgxcZUWIuSHt4Od6F4Y X-Received: by 2002:a63:2bd5:: with SMTP id r204mr31772704pgr.48.1552330835829; Mon, 11 Mar 2019 12:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330835; cv=none; d=google.com; s=arc-20160816; b=hOoI5uS1Ao6u1Vncz+Cyk0XPnpd9a1iSVOrvMKFr2deiPyhSPV5iW+RTnMhl/RWddK idOjEpJb1iyjtiHnl3GP3tH9qgSi9oBPf88ChlgoXHKatgHum55e0+T+rxogZLiXd4L1 +7W8yQ6Km5t9CS3bo+Dz9UUM6NoxOQuJM22/+A+R0CpyZbSaaBkp2kctw/eU/5Tz5PPd SgC9t2HnFjMqUYlddD9k224/p/JEnR7N5/03+9ycbcpJGv0oL2RaJGHWcv8HeQZvi5pL aKjb9x9horAx8MzVhlkFNIEl+wM7b/LxjOqvhyx0SyDUvRMBMk307uGETj9Ci/mOuov4 JliA== 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=vklj3mDuQonB6G5TMl5taLMeUMa3R22ZMLmgmqsoZKQ=; b=ifYxuWYb+8lBdeVVXwLzvoDvLIPyGLzTByAQms/cxbUxpx4/a5pk6rQTo1vYqF9F3f ev2FeSKVEv8nL2OzLVsB7IoJHA/MWs3/Z22J2+wjEiL69nW/CQ0HOML3zR595uJYplOh 8Drx2pf+Kk/Rzs47rQ8JBXdvmXwbrCkHsUh2wp2icdNdwaGajvFMeibtnmnvX5D9SYFo koR9CNeJwftrnHECRcqyVN+7EaxB2xWUgs9S5bZa2f34hB1SZaTJLxn7CV7LAFIdV3Fn 6+u7ORZjAYli0F9YHZ6/FQNdLuvdv53fiN85J2/AnDCaJMinLk1ujg2IoOm1cEmDG8KM A/Dg== 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 cv7si6175883plb.322.2019.03.11.12.00.19; Mon, 11 Mar 2019 12:00:35 -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 S1728367AbfCKS6f (ORCPT + 99 others); Mon, 11 Mar 2019 14:58:35 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:32977 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728326AbfCKSz6 (ORCPT ); Mon, 11 Mar 2019 14:55:58 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MSckp-1hWJl91b3Z-00Suf9; Mon, 11 Mar 2019 19:55:42 +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 22/42] drivers: gpio: mxc: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:01 +0100 Message-Id: <1552330521-4276-22-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:Qm2300WtvIG8jpOwQ2dOoknWJDwlukNYlP/V1FHhyIv8GvZQlfp czKBLzx/payXcZezcI1rIrFwhMQQc09DfO0u7kXM685jbkORbAGk8/dSUAVVvBv3U2iSGyV xV8mDUyx6TnsK9gcHym6a1AeeOzs/F8MEgPXe43XTUKtibagJ3hIjOIQYrHHLHCwmc71yvY 7VkKhu7zg0AijFz1SmJEQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:N0wF0C6Ywiw=:g7aE4UxttlkTfp265hrhw0 DgO/OcHsYvKAQN5EWGQxjj90E0qKGk5fYdToDsWpHOCh1yG3MYHnrqDCBMsD3LZmk+s+Zo1hv 1MmWCNuZuvPSVmkCP84vAq4jE3sbb3SF12Bq9KqgjNGbOkRYI5CMrHYRa7qE5oQWlTQcLhpHf j4TKP7bP6uyXLOKgQkqkibG8T4PGvfoLTflDWWiLz5LBuUuXYiRPrzD/3G068YzATg6heOeRu Bdkrf3Pjy/ffrj9Ovmb8J+okui24BrYzfO/URYv+a5JPD/FY5OX3Kd/bv6Ri2VVHQ0bh7QLcn M5uwaTazP/3QFXqFMFYcFWmpEDpQKi+U95YmuoznFgdGNBCglH4HTrXI63DqUyc3ggaOorigS 6C4pqdLR6eE1j2SqMeubTujCUFrh0mmPgUvuqE3tywE9/grJM/Sek2es0kk7rCvqPwTslXWEf NPPnb+nKZOXSlpl88M8bNhAyaR/OezMfNtPrv6qv2u5J7H2uWY1MSOHClfMSu42bMXO03xeJn gZHMWCgrqA1JvHE8TYTnUIFqO118fkPrhaEX2+U7QufG02fGOj94dV+RLmecZIhQ7BvbA+aFr S1yYlTnME3tZFiPBI/UYJ4qaZyiUrritigsjZWx3DEExJCK6M4xq8y/WjwYzQuiIgMneFtFC2 W4egBwD7E7BRQ+kwtKaJWl5NaUk3kkSQgHMfKf6ipgm35zgjWGoyRJ/XXlXxRr8J62dCEXk3U BYkaSz/uf4gP7pOUjfJESKzOYBux4cNAtCw+pg== 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-mxc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index e86e61d..b281358 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -411,7 +411,6 @@ static int mxc_gpio_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; struct mxc_gpio_port *port; - struct resource *iores; int irq_base; int err; @@ -423,8 +422,7 @@ static int mxc_gpio_probe(struct platform_device *pdev) port->dev = &pdev->dev; - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); - port->base = devm_ioremap_resource(&pdev->dev, iores); + port->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(port->base)) return PTR_ERR(port->base); -- 1.9.1