From patchwork Mon Mar 11 18:54:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 10848137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 213AC14DE for ; Mon, 11 Mar 2019 18:59:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C39028B03 for ; Mon, 11 Mar 2019 18:59:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F41462913E; Mon, 11 Mar 2019 18:59:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D32A28B03 for ; Mon, 11 Mar 2019 18:59:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728476AbfCKS7b (ORCPT ); Mon, 11 Mar 2019 14:59:31 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:46881 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728250AbfCKSzw (ORCPT ); Mon, 11 Mar 2019 14:55:52 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MXpQA-1hZMAT2LkK-00Y9Jq; Mon, 11 Mar 2019 19:55:33 +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 11/42] drivers: gpio: ftgpio010: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:50 +0100 Message-Id: <1552330521-4276-11-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:IF4aRbk+3A0wj1tjs1c625xoyYIRxtMqNhxJ+UzO+XrC4X/MPKO pUUVJhjvTnnD1H1qlM2mU6F1MruHwUJR0nQrd/NpqvzvVpsA9LLuLY24YEIucnvYCh6wCHG t1pMLcd5dpXpH3bx6duS9yDil1vdlqCetD4G/kt9kSWyeZGAT+WsZWPtTe+O6u2qM2F9/6k 1x1erEkR5MH5zwSOV4W1A== X-UI-Out-Filterresults: notjunk:1;V03:K0:jgzx7diTwuY=:Nt3ZNiDvI2PGiVH7YJcRYZ irUDJVJTwCqHcaSV4IylWkivz4M54Ug+qzgMeuP+MPjfYkGH5lL6Ijkmq2eVi+cTlcNfioNW/ 3vlpRcIdnVAa6UaXxk2UHpjpLY+fBtrpuWknnS208omRyL3UYK3KlVtPyyuvQtGOxd8HPPnCB ydvIOGOtkWoFlp/WmlnYPt39Z+wBjFf1GB7xmoCZxE+Fhn/e//fC3wdczb3LKa6KrrvhgtQ1p rzPpnjAUDgSVGeNJEbZGGvJSiDiW6tcZN9Pvvrr3wSKMhAtd+OM7W3FQBWEg3FFQ+AdfOSHrZ 6NEpck99EiI7ZW5PGs8pkwvZ5bzMZQQF25UZvIy2PTX0TBvChdtKm8gxn08PISDZUtrVV3giK 5nrlNRg46pgewJ4X/Ap+hnK4YbMyenmLZDmFAF7VDbwPf5WDG8ho+YTIzconQVQOHDrRLJEFf o0CG7yRYQ+UYjdEPtnj8gwxgKi9HJ2fn94ejlYTUN2leaa2I5e0qKcWqezXQ/3mKsWZwtOfY1 FsfJEuYtK04TsShyip8he4CFfvBxx84NvhPZqldziVi8sMeLo/tksiBesb+q7TC8zEv+Z2fF5 EMq/LDEezbxbiRzdjea+B5iczBP/lHAdcRX6OTcsKDkS178Naq5Jeh4VrlaIFEIev8Ck1aW9t eu2wq0AcaJ4JFbPY1ngDAHlhxpW/4uKMf5I6S6HqxsYJS6/s27mYsJipHa56yxh5XYtN9KDpJ d4UBAkw3fdBLEYN5OcRJ8v/IRws/zWu+a9/dTQ== Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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-ftgpio010.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-ftgpio010.c b/drivers/gpio/gpio-ftgpio010.c index 45fe125..8ff8ce2 100644 --- a/drivers/gpio/gpio-ftgpio010.c +++ b/drivers/gpio/gpio-ftgpio010.c @@ -225,7 +225,6 @@ static int ftgpio_gpio_set_config(struct gpio_chip *gc, unsigned int offset, static int ftgpio_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct ftgpio_gpio *g; int irq; int ret; @@ -236,8 +235,7 @@ static int ftgpio_gpio_probe(struct platform_device *pdev) g->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - g->base = devm_ioremap_resource(dev, res); + g->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(g->base)) return PTR_ERR(g->base);