Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1360912imc; Mon, 11 Mar 2019 12:00:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTw07Mtas0xSuRPS5q55TD5HtXS80vITke/XXy43j3YJO4bX0w8kqEaQRAzyhw58aeWU17 X-Received: by 2002:a17:902:121:: with SMTP id 30mr31113023plb.315.1552330814037; Mon, 11 Mar 2019 12:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330814; cv=none; d=google.com; s=arc-20160816; b=SEpsb0Dyh5M19cJWXSZR9ZR+XwEQNfeGOOB9P7zZIIJoOarAsTQ/kZcUgGVt2RNE6R SiPqUEd+l9FisXbJAWrIg3m3fZ/ZUULDnN4TWz+X4gYVrirhtzgsb+GVgw5yEltsidEs eh9Kh5kP78Obm+ibRCCoHq4OWR4xm4DfDWu0cicLiGNX0kuj0jCcmAh1GYuCTMAatqRd ITQOdskq/CFmY8Es4ILicRj3x0UudaPyBJPfCJQ5YaS1UY3YbU8gbpaiorestI15CYqa ws76sOb2xvzclYI6Cq738+9seglKIq1ge+PbzhOUQE9VyZ5aoLpDUeCqXjjo7+3LJa9s pKpg== 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=rL+YQfvozoE5TezGACzz5FS3Usl6kRwoiDD/C08M5JY=; b=yyTOT/1hmDL9sw3qpj28fPDXGKL7s/LqUrLnJ9HQoCf3fhfI856y21guqxVR3fsaND k+fGHAI+NqVAuQmRxQJBLXwA1qc+rq4YTeGLGu66jexX9c+XI2+jZEeoydr6qiNjrcuN X85I9HSYDj5uetIp7buqKiPBunTbE9yryVZkSz4Elm90zxECy74MBmtrm5NUuXWFJU0F x3g/ce9GsnSHmGolw7JJsv9sSTsAdqYJjEOY8oZQo0XYwr3KZxbDQTM/JfZ/chtgsV1H nQ76Mnmg4ubybmd22HCaR8fbD4uq2lqGNiMTfb3EDayQs/yzuy+23pH5n45zwpMSg6TS t5Lw== 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 x19si5669213pfa.130.2019.03.11.11.59.58; Mon, 11 Mar 2019 12:00:14 -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 S1728479AbfCKS7D (ORCPT + 99 others); Mon, 11 Mar 2019 14:59:03 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:56915 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727548AbfCKSz5 (ORCPT ); Mon, 11 Mar 2019 14:55:57 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MuDoR-1gn77W0eHF-00uVdb; Mon, 11 Mar 2019 19:55:39 +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 18/42] drivers: gpio: lpc18xx: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:57 +0100 Message-Id: <1552330521-4276-18-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:wij22z1GSFaPLeAiUmWKI/2f6sytehPWk/kcanryAl92PLHG+yw B7h3RdTcmBOuFE/G6wDoHE/1wLSBv010NNI0LIzzHVHRfwWvBejNu9mA6YhML/zWQQLzbgK fLgCEu/4x044Ne/1fB3hI6imDRDBsMG3NTcRE8Y2Zq3HsTubmhElYlH5cyXby6gsMtpMWU3 KnC1/uGKzYgonN9YhY9kg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:GiD962D/Tr8=:8JY3Iz6vTCCFmvdSWgFZDF LnBUC8wKOXVs0gM2oLh4jWy/wvBr8aMetvIvS20HNDihx33ZsXdFf2O6rKB1fo/R5jLSe/A9Q 7dNuCq2f25anEBQjz3Lkk9mxPXIDME2ZwPSbgi+uVjXu58TbhqV7H4DnWg0czwochQfidOHfs yeJyhNsWgL6OokTMVGW9K0+BtLL4LGyt7bX4CaHIST9kjvzmMIlHo0IXhbor2w476vTcx3a5c dRrnqmTEmz/tjS2qpIAN+MAxUfRnf9RSdDEujVk71p+FAPVhzNpDaWth/aX+HCsT0VFreWFe/ Lm4HTCtoLxhHK1j0b1n8cKgFjcP6Z5zQZAcvUfaXU1ZMqgJXG34rkRab/0BP14OvBGYwL3UKW n9D7FF7KZZZUCJCO5SGGxdM4ad7lc+fHhIYJzxL2XIiZXmKF4C/xzIj0Kj5X9JRo0ymbe6Xxb 3Q674BJyOTmjHB6+9MwIngPYe5ON1be5kGkznuBpYQIPR//tky6Jq5lWVu8KZLUl1cHptWLPB v1V7vkbm68H1Japq8TVIX0NSEVBsjznxJ+chI5g/qj0krL0lYcFUES6A7CFQvOHnbsjpLg6SN ZVJ0t05lKfFTrZNu1fPrldhPnAItHhBItNR92dVn5mH3KecT3kvYRbPf69xk2e0k4NMz6ObfC uYGRpIs6gohv9EH9n9mb41tIagFYUd08Aa4H4CwoRzI4bNTFfMfrlizHyyQkfye+QbMgJXbrY yHzp0d889Z5cZags02c9LmmH7ICpIak2K9k+CA== 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-lpc18xx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-lpc18xx.c b/drivers/gpio/gpio-lpc18xx.c index d441dba..d711ae0 100644 --- a/drivers/gpio/gpio-lpc18xx.c +++ b/drivers/gpio/gpio-lpc18xx.c @@ -340,10 +340,7 @@ static int lpc18xx_gpio_probe(struct platform_device *pdev) index = of_property_match_string(dev->of_node, "reg-names", "gpio"); if (index < 0) { /* To support backward compatibility take the first resource */ - struct resource *res; - - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gc->base = devm_ioremap_resource(dev, res); + gc->base = devm_platform_ioremap_resource(pdev, 0); } else { struct resource res; -- 1.9.1