Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1362676imc; Mon, 11 Mar 2019 12:02:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGRk2q1KxLXaaCj6oyJ/2MPhF6EAiDVNyvZ4xvs8l8gWKa2Q6kcXZo9W594/KIfcyVNbhe X-Received: by 2002:a63:1014:: with SMTP id f20mr31741168pgl.293.1552330933594; Mon, 11 Mar 2019 12:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330933; cv=none; d=google.com; s=arc-20160816; b=OMoqMPv0FlGKx4Wjhw3c5SfAh5xCg9W/XNm94RxOhpBerflgftnGivzCZe6tbeb9Js c4zxi1yUk+UaFaMwDPNhtpVNKZbG9XdkTYcBDFIZ+gbVMzmsxYAXZnvZXTqT/GcUNMUA 5jnIceXPqisSS6qQSHbINF4AqiW2HMaTQ0xdgnnMzs57bp5qxrEYNWCgyVorsaC/pBfA TpNCk/hbYL/v4kIamG7sY8P5z0vzJNhBJqU2F82e+j5xVlrLkZwYucA79YiiWOVgAa4H ysm00jJZrGIRimksU381vyMcLZaRgZLJyc6wLWONZWvG3WCagGDXUjibTgHOwqHe2laU 7t8w== 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=/ddGntXmw31wBgORRjd+8cuvJN0JgOCALgTEeGYKd1U=; b=iIR6PgLbX8D+U+EtPDABHsTjGmmO+F+g8XJKBhJGnvWS4aGId/MsEH4QYCpymSulgV d9lljGyf1g3TGO+Ipv1mCJdKqkEawu1zr9vz7PADUG7p23u/tkiAStQHhXuxfKECCh2P zMACdqeLVTt0JhOvHkhUpIicsl1BRaAc7o52d+JbRxeFLK4k7DCLfI0QuAw49BtULzFb C1nMC13laL9tt3ZbwbiVf85B1Ji26idUnCGXFxBWaVA6UKgmJVMLjY9EGk8UECjPd1PO jGC0J1SnjBk8zuYFjL4jT3K7JUhVDcCMS14UcsHURjQMMui7EQ6rH+6nUB8OLf4yrE2x +tQA== 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 n19si5600165pfb.189.2019.03.11.12.01.58; Mon, 11 Mar 2019 12:02:13 -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 S1728240AbfCKSzu (ORCPT + 99 others); Mon, 11 Mar 2019 14:55:50 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:38883 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727611AbfCKSzq (ORCPT ); Mon, 11 Mar 2019 14:55:46 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N7AEs-1h01Pz0ep2-017U4Q; Mon, 11 Mar 2019 19:55:31 +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 08/42] drivers: gpio: dwap: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:47 +0100 Message-Id: <1552330521-4276-8-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:JvWddtI202isHlhHFCpFpefCyqjWNcBv7uWWKOkSKehm8Axgxcl 8l495+5KmIKieXvt1R5JXQdZK6bSQDTzgRKSkCdHGzKh2UPoR6HAakdMHrgpYhYDile2SHr C0u75A2LFvd+/bEybVlWkgNkKF31eWFiYLqcX9ToCHeP3H/lRxLXkNz+Rtzon90BPmEyqCi JQwHCUdJiaaUiKoSz54yQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:siHUzAJZVkU=:Cb4otYxWPv2sPysrrZasOc CZYei4/IFo9LFgLPRBdSqhys8DuGM2owvJ+6fsKB+CIVJMzYhAplTJ3BcPkP9WFq1mBfyKHvR 7XZ8uLsYibXIGt/jv/6YcMh7qwatmHADP1geQl1YToY4aXhKfFDfD7Vlr0GCtKPqOCcqY1z86 81Ru7ZNbMJX8sabH0ukr62hRXo+r194lH0+U1nVFBf7eKCSb6i7c6wkntJ8hovcRkOl1vZ05L DuuMwRglUwBIBLNTPz9FmzPlrL20iB7FZE10jWp/WLniIR22ZRpZSDtdB0s+4IjDMTak2qfY2 avzIl2VaFhPSrFlskQbPUQuDF58aO4RPAXE5s5uWStptnDeG0nuXeyuxhVktPRUP3gb1LwNES PPMRLIUJoa2Vld2fYTvVTJ23rBQaCszxnnM3J+ShIeGStDl8Q+dwfXJ8rzbCQdrfo6F/uYCr5 rkZt3/zHe8q9z6NMoQAVuv29Sscy4THLcKUnE5Yipdnh6tAJvCi6c11JX9RuD7Oh/+bdB5pFH k1+1KVAeOGBLnpbv3oxjjubZju2J6xpTfAiUoLsb10mt0Zgh/KIz+kuZ8Zz4Id5MBxXpYB0wk +fAxlMsNYnAu+xApK64eBbB2HAQie0u8c1vfau7y0S95jgdb7mzYBBX2PPue370V6ea0jAzTw 1F47vFmPFs5wAl+Gj69w4XFObVInafHjpiuNlVnTR6SGlj4auuNcIYybPapmrZ5Gk+eB8ISLm LnhRKDgGc71X7debkvERXYtkBSRWN1I8XTYOHw== 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-dwapb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c index 84ae044..d3eda65 100644 --- a/drivers/gpio/gpio-dwapb.c +++ b/drivers/gpio/gpio-dwapb.c @@ -655,7 +655,6 @@ static void dwapb_gpio_unregister(struct dwapb_gpio *gpio) static int dwapb_gpio_probe(struct platform_device *pdev) { unsigned int i; - struct resource *res; struct dwapb_gpio *gpio; int err; struct device *dev = &pdev->dev; @@ -688,8 +687,7 @@ static int dwapb_gpio_probe(struct platform_device *pdev) if (!gpio->ports) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gpio->regs = devm_ioremap_resource(&pdev->dev, res); + gpio->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(gpio->regs)) return PTR_ERR(gpio->regs); -- 1.9.1