From patchwork Mon Mar 11 18:54:40 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: 10848167 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 DFA501850 for ; Mon, 11 Mar 2019 19:00:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE0EB292A8 for ; Mon, 11 Mar 2019 19:00:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2483292AA; Mon, 11 Mar 2019 19:00:44 +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=unavailable 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 81A7A292A8 for ; Mon, 11 Mar 2019 19:00:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728048AbfCKSzr (ORCPT ); Mon, 11 Mar 2019 14:55:47 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:46561 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727110AbfCKSzq (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 1MCsDe-1hCBWX2BX6-008uo2; Mon, 11 Mar 2019 19:55:25 +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 01/42] drivers: gpio: 74xx-mmio: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:40 +0100 Message-Id: <1552330521-4276-1-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 X-Provags-ID: V03:K1:Dld4P4mlkxZ+cBRgi7FSkT2DwKwul+OTLykV4/ZhcQxXvx4Owm8 F0iXLS7/PspPvHxdnr6AErTwi3C17VO00ke7gz+hDKaGNPcZzbVwkVhbPD9ODBC12hqIit3 7vboIKFfCNLy1XJeGlCV/gtwLlJRE46i2qsrkZWfWLBEDM/p1xbK7am+40sh8zTFTv1dTW0 aw/i+8u5V5orE0/9gX+ow== X-UI-Out-Filterresults: notjunk:1;V03:K0:5NjyARZWbNs=:n8WdFqBYCaSCOzask13+Va dLMwr3EFjBBZw6HLHSTj0DIfJk7U/9SEzWE1uPF2fiN4+Jt90qXvkm+OKeYemclCxbIeAZRnq EshhGpDcqgHforEzuKdz/g3HFazt7oubDPYukBw8gT7m1XItJnEjwVOPHDrHaCWmgbjOVjGNk Yn1k+JI1aEhPgfPUgLU4SP5J3OmNmvaecFxkP89tRoBlecJqgqy5NaVDpdwFP3eOYyB7YC5Yx ECV0YqlDO1Yk3Dexl5AdeCVymFqrpwOj+sI3nxqrj40vsfLOWBBGyfNPfz3QsbSn6kowgvSL7 tqKNLgD6cpXlXZ4xjUMl10HU5Dn6LsKUyluXKDi7VZvt6GV5SUWLictutbl9dMQgGnJkhlsPu 3xacwFwbMbZr/kB8QYC2WCUzV0VnFjfXZ/vprYlVLaz5y/9W+FA/r0oj0b04/kY89A8RKZIvt fUpJo5+sn2ac9SU/FVZactwvt1P6jbrZn14Ns9N//n2gGpNs5eejQIe+Dl04g56CR+vMi7Ztc OAxzgv2GlZwGOmSjmQ8N+IHifHXknLNli/pP0AYl+g0oa/vMe78GagIEvV55iqO76hPTFKMjs C6H3uFbWHf6JCvoe0LPPj7JE9hajVL+SJLPRJCSkoYhdaVgr/DV2htsB/q/LuBdD3nzabj3R+ yaqDZh2oU3nhf8i5pgtDUi9TyyRu63s0+j2CUcYoAIdG1JbaU6H8Pj0HD286ihy2duY7v6OB/ Mf+axXdaB//16z9CBgOTR+McGF3BmxV0hQeBdg== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-74xx-mmio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-74xx-mmio.c b/drivers/gpio/gpio-74xx-mmio.c index 49616ec..0424707 100644 --- a/drivers/gpio/gpio-74xx-mmio.c +++ b/drivers/gpio/gpio-74xx-mmio.c @@ -106,7 +106,6 @@ static int mmio_74xx_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) static int mmio_74xx_gpio_probe(struct platform_device *pdev) { struct mmio_74xx_gpio_priv *priv; - struct resource *res; void __iomem *dat; int err; @@ -116,8 +115,7 @@ static int mmio_74xx_gpio_probe(struct platform_device *pdev) priv->flags = (uintptr_t)of_device_get_match_data(&pdev->dev); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dat = devm_ioremap_resource(&pdev->dev, res); + dat = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dat)) return PTR_ERR(dat); From patchwork Mon Mar 11 18:54:41 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: 10848151 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 91A5414DE for ; Mon, 11 Mar 2019 18:59:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FEBD28B03 for ; Mon, 11 Mar 2019 18:59:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7370C29190; Mon, 11 Mar 2019 18:59:54 +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=unavailable 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 2E3F22913E for ; Mon, 11 Mar 2019 18:59:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728171AbfCKSzs (ORCPT ); Mon, 11 Mar 2019 14:55:48 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:60591 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727696AbfCKSzq (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 1MauFB-1gVzwD1NoR-00cR3V; Mon, 11 Mar 2019 19:55:26 +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 02/42] drivers: gpio: amdpt: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:41 +0100 Message-Id: <1552330521-4276-2-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:t7CtsQ6196NUwn5AFANedHt5v9gF4mlhPz7HwxccuT62LP/FYC6 R6DbwjnsyOAR53nEwDDOtCynB44mzcscN8kUf4o2M58AE5n1AghFS4Sc/Ft4tZlt+4eZCvo aSofRSDj3JREBpin32lQt3cN+fIT/VUAdyBoVRbQBZBMJV1e4J6aAbgbVJIsx4261NhTT+3 SD39WRbgYcMUJmnrDnBmg== X-UI-Out-Filterresults: notjunk:1;V03:K0:bUfE33xEpxs=:pTsoENNS7szHsdIGMkPYSI pQm7fewthpFAWB1DJWYebJfjXEoJb/cDcaDUnhN5VlkX/D23gUn0JBvrjZgUK24bxNAgPwNoj PsUgP+4Vzio6UmXXIGsSfKGo9shyQW9Ah7RvtTvOJLiRy7tVtGJX9wK3vUB4NvTKT+htGmqxu kzuyKFZYUhXduD2mlcwMdfwG3Ye7EAZvFIrGdhqjCSAaupf4cQGS4w9OnrmMp2mMfAtpYfsXT YhWH+lwKIpVeuo5yKaSBryOom96+Pd/34ECqxVxkiXMCr1OrF9+tt85zzhLoJubLwsIbweAAt kiTHABS4GpZZhZCxbUZ7zCNflvXiem3ap997Jq9xJS5ZdtU4TTbg/ZjdvhVKObToViGiNZqyP /H4TyZYl0+35AQe88Y4dX1cEtKIjVAFT2BtD2yZY+Chn1rE+ITDa7MHkYtPlhykMwroCRBKfp Yh5bvW39ImG70gVmiuQyRqSAVmtkZVD0YKCwdUG3sQsVfaRwMAiye2L/j3x0iabfZNKFD8YcK gcOkWEIUlkPf5QFVh/qJJ1psrfvkQopb/sJE8Zs6jVqqCZOyf/md0rbM0KaFD0tXc8O4qRj+J Z64Ls5HV5XGFiElfPf8cmanEQz0SIm9YR6nN3e3PcFwQ4nTcEUjp6nXDH4bDvC0QuvNoiBGYO JvSnVbdtm9wuOCsWcZmpG9/Vb9nefJBSa5/g3el26qDbkw1RgkVSdUdHETcKDEmFylncXByc0 YJhpi5ZsGUyPGrpoTQVWboScA2C2zMig6Y9FxA== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-amdpt.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-amdpt.c b/drivers/gpio/gpio-amdpt.c index 9b78dc8..1ffd7c2 100644 --- a/drivers/gpio/gpio-amdpt.c +++ b/drivers/gpio/gpio-amdpt.c @@ -78,7 +78,6 @@ static int pt_gpio_probe(struct platform_device *pdev) struct acpi_device *acpi_dev; acpi_handle handle = ACPI_HANDLE(dev); struct pt_gpio_chip *pt_gpio; - struct resource *res_mem; int ret = 0; if (acpi_bus_get_device(handle, &acpi_dev)) { @@ -90,12 +89,7 @@ static int pt_gpio_probe(struct platform_device *pdev) if (!pt_gpio) return -ENOMEM; - res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res_mem) { - dev_err(&pdev->dev, "Failed to get MMIO resource for PT GPIO.\n"); - return -EINVAL; - } - pt_gpio->reg_base = devm_ioremap_resource(dev, res_mem); + pt_gpio->reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pt_gpio->reg_base)) { dev_err(&pdev->dev, "Failed to map MMIO resource for PT GPIO.\n"); return PTR_ERR(pt_gpio->reg_base); From patchwork Mon Mar 11 18:54:42 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: 10848161 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 D42B21823 for ; Mon, 11 Mar 2019 19:00:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C069C28B03 for ; Mon, 11 Mar 2019 19:00:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3F9029190; Mon, 11 Mar 2019 19:00:19 +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=unavailable 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 6397128B03 for ; Mon, 11 Mar 2019 19:00:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728032AbfCKS76 (ORCPT ); Mon, 11 Mar 2019 14:59:58 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:56709 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727387AbfCKSzs (ORCPT ); Mon, 11 Mar 2019 14:55:48 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mv2l4-1glkjv0Z96-00qwjm; Mon, 11 Mar 2019 19:55:27 +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 03/42] drivers: gpio: amdpt: drop unneeded deref of &pdev->dev Date: Mon, 11 Mar 2019 19:54:42 +0100 Message-Id: <1552330521-4276-3-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:MB90/paVBPmJRTSCmdVCoN+KhFi++p5O8RVWv0YnjT+OAKhP4VL LsYMs9ns21OPWmx+Ev5oikkJWJ3/sY/bmOKgBynN3jZ5XIn9MhCNQOuiJiL13VIvwcrc0jo YIKe2SFe54asSWMxC8Q3h904bjFP9OvzFq8LykE9X4kq5vNVVbCM9flhW247i7UFlaOP1wu 0LVzPF7w2Zv9HErP8X8gg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Jq8YX2ANlZc=:6mHFW8SLy+qSqaqd2CuPnW ZH+Uwif76ej3J8SLS4yCnbNM3LdU5ttwt+aTuc3hZ3Z+Qi8ympUH+c2JKxJEyofr45E+xOwOu X8VRRWBTGtniSJ0hfyAeMdIQRjCMvRxm9IqbPacTnE3mMktATdggd2qy+EW6TCIqram2m56xV fLQrCSp3IHrO9uwuhn+52NCCLLnyaKNDa235kBafjlXBsIj/Z/jNe4zccjXhosHVfs+Ug0MDF azpSFgqao1G8YVpueXGwsiZuw1NtO2fAVj4KobnwCFXGMpKwUof3w19TnPyVcKk5/9hygT8/+ kq6hvNSBicDukRAHCp7NMTUqEBj7T8Ty4RDVw5UFAGS90ua1s0Hd0+cZZCB0P8x+saFtr2snM Tj613fGIVupo+X3mOQFSut2PwXsXufadIy1S7nVCZBouXphkmXBjIGPzhbhOxjYS6/LBfCHs5 iLjO/VpIR/jDhOoWm/hQXvBATcFJ+fHI6TS0aWyd7u9itME5D3Jw5sVbtATt4cLzwsEci3VDd FGr8l6siMJ0DYfbYbb0SV9i5bPY1zuc2asO0RQgIfR8rpWjd92QoI+eGVecLRgEJexs/ke8hL gBbF/Vk+w2VJjbv5+kp2FX3ZHSjnGkr2jf81r3/jZ5WkudliOZTjgcit/ikadRFtqO0KPaApL MpTsbeNZxIeYUXUgqmcGi/FV+ii7RIPiPI671IzoXgqOzHMliJAycQwYxWIcjDbDxu3dlDtvV L9QmOO5jwQDUZWq/uzQQBxTejoA1dAlGjtKJKQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We already have the struct device* pointer in a local variable, so we can write this a bit shorter. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/gpio/gpio-amdpt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-amdpt.c b/drivers/gpio/gpio-amdpt.c index 1ffd7c2..3220f3c 100644 --- a/drivers/gpio/gpio-amdpt.c +++ b/drivers/gpio/gpio-amdpt.c @@ -91,7 +91,7 @@ static int pt_gpio_probe(struct platform_device *pdev) pt_gpio->reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pt_gpio->reg_base)) { - dev_err(&pdev->dev, "Failed to map MMIO resource for PT GPIO.\n"); + dev_err(dev, "Failed to map MMIO resource for PT GPIO.\n"); return PTR_ERR(pt_gpio->reg_base); } @@ -101,7 +101,7 @@ static int pt_gpio_probe(struct platform_device *pdev) pt_gpio->reg_base + PT_DIRECTION_REG, NULL, BGPIOF_READ_OUTPUT_REG_SET); if (ret) { - dev_err(&pdev->dev, "bgpio_init failed\n"); + dev_err(dev, "bgpio_init failed\n"); return ret; } @@ -110,11 +110,11 @@ static int pt_gpio_probe(struct platform_device *pdev) pt_gpio->gc.free = pt_gpio_free; pt_gpio->gc.ngpio = PT_TOTAL_GPIO; #if defined(CONFIG_OF_GPIO) - pt_gpio->gc.of_node = pdev->dev.of_node; + pt_gpio->gc.of_node = dev.of_node; #endif ret = gpiochip_add_data(&pt_gpio->gc, pt_gpio); if (ret) { - dev_err(&pdev->dev, "Failed to register GPIO lib\n"); + dev_err(dev, "Failed to register GPIO lib\n"); return ret; } @@ -124,7 +124,7 @@ static int pt_gpio_probe(struct platform_device *pdev) writel(0, pt_gpio->reg_base + PT_SYNC_REG); writel(0, pt_gpio->reg_base + PT_CLOCKRATE_REG); - dev_dbg(&pdev->dev, "PT GPIO driver loaded\n"); + dev_dbg(dev, "PT GPIO driver loaded\n"); return ret; } From patchwork Mon Mar 11 18:54:43 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: 10848171 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 D13FD1823 for ; Mon, 11 Mar 2019 19:00:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC464292A8 for ; Mon, 11 Mar 2019 19:00:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B07A2292AA; Mon, 11 Mar 2019 19:00:47 +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 6596B292A8 for ; Mon, 11 Mar 2019 19:00:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728633AbfCKTAq (ORCPT ); Mon, 11 Mar 2019 15:00:46 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:53079 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727336AbfCKSzr (ORCPT ); Mon, 11 Mar 2019 14:55:47 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MjSwu-1geUOj472o-00kze0; Mon, 11 Mar 2019 19:55:28 +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 04/42] drivers: gpio: aspeed: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:43 +0100 Message-Id: <1552330521-4276-4-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:FLe3yu2Bl0wbdNdOJuuqe8+TNM+1Str3Ql1HFBkfH0UTHA3qqRR AzrY8RF7w4CDwUVX9oEThB85YGOG/3Zz1ft2P0QwAwHoNmUV5grJtH35Dj/cgQ89W+yJgEj Lm9ASyGvJSq0NNat820BP+YDvjYyneenQrOpBec+nYKrQP0MSHWjcExLJfSuUs/W8SCm7uZ UPnDWliyVlR952H7tZTqQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:/5hx0x+zooM=:Zaz4VikhmAr3NXcMxa3YKL woADYe1Cf1xbzl7F1Uunp1iNURs7I3swqmqSQtLRZwN0WtRPOAZXIz7w4zZev29baED2OeBdT DtfZua42xQBRhM1Sq89iVprrPSYrpLrPBOa496QG9cvT1hUpGBh1p40QTSohsNOsUq+lpwbtI wuxsPG3cqpZNT2He+kcJBECxodHD2GzBw1AtY0AUZc3U4lFhieKo1rPLZcSgXrTI/RBtmtV90 k8MJkl4jAzmowd5ayxZLfCLv8b3VpMkm0DXLLw13PJmFKv2PeqOJlJ4CcXlZEJ0el9lKV6ccC gFWk9NBM0Hj7g/4faFZsvFGrxKKU4dAR5hGyIFjjveaJMf0YRSAWiHlbApdTKFG6b9IM6ktNY vbFZaYC4pLRoEcmFdQXAr05UxJ1F9NTlGn8UvwFcZ/dDZVDGbG/QKCfqGJSCcso+urduxJh6V i524lXqjbQ+nsUyC5cHQDCwcVov3nv2VaayeK9CZS3rFF1UCkntD+Pp6aikA1GK9YN20PFz82 PzH0V3nf1t9r2CRNxw/LJniA6vwHXbQlML6O/xFrwZT26BD4KS3ZVm7UQlcHoZ0q+yYP6Ll2m SqQoxdqEQqxA1BJhAPys8o/rQSNi1dXu2vVj0FEbTDNrCUL2SPVrVGzS91u8vlnfG0BrlaIZu fZCWMhLFCpbhMzgZ7nFFFzaqo4ijOxhpDdtUeAAHvwQtAbSh/6xNAofFohjuTih2K+xV5YnJo GtcjT0Za7/+bCrGstECQK05eEqjlDB+qY2mHsw== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-aspeed.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 854bce4..44aa843 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c @@ -1156,15 +1156,13 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev) { const struct of_device_id *gpio_id; struct aspeed_gpio *gpio; - struct resource *res; int rc, i, banks; gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); if (!gpio) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gpio->base = devm_ioremap_resource(&pdev->dev, res); + gpio->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(gpio->base)) return PTR_ERR(gpio->base); From patchwork Mon Mar 11 18:54:44 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: 10848163 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 3FB9314DE for ; Mon, 11 Mar 2019 19:00:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24CB2292A8 for ; Mon, 11 Mar 2019 19:00:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13F6E292AB; Mon, 11 Mar 2019 19:00:41 +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 AD0B0292A8 for ; Mon, 11 Mar 2019 19:00:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728110AbfCKSzs (ORCPT ); Mon, 11 Mar 2019 14:55:48 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:45351 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727527AbfCKSzr (ORCPT ); Mon, 11 Mar 2019 14:55:47 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MQdMG-1hNqeU3IH8-00NfzM; Mon, 11 Mar 2019 19:55:28 +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 05/42] drivers: gpio: bcm-kona: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:44 +0100 Message-Id: <1552330521-4276-5-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:OB0ffSwb9cqcismUWwuro9j4foAvRX/l65FhOCmatdGPADLga0N qHaYaFGB+adX/Z4VICQHcps8Zg3xu8gTiVlaFv+nUpc4ca6x4SR15SuhRl8rqmul7g6tRqy hLUCjJmc8PQk+qZupPrGaXnBtXYNzT8JVvly6YlxjzfVwLI/+9aXJ9qYxEjjL1zkzUdlMrX iEnQ8bwLPRJrywqG+CDPQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:8x7KWS/rdBA=:0R8pQi/f6aM8S+aO5taeKn ADgVwh+cWiH+HsmFLbVKf/bEKIa1HQopj0Xv/6dbrU06Q8JoLyxEcRauB7wxLoxfoml+pkF1X 3FqVMou+YjwPwk2KWph2V0y24EsurGRfLNYZQsiVYZCEJaylJ+eiRT9CmU5ylZX3I/037bbQB UGHgex/kC7hH8OapGvYTpUplL59ODsmueSuZaNY8dxGFZ6rpfkwdogS2O70J9O2ysk1fUQpL2 4TcGCWzdbJpeYLArtmaaK9uTh8NhuFhaZ8PQoqT57f30BELHFz8MRdwDQvPIBf6lzQSZBqyja xBf+9ZF9YRT2DqrZf4PZr0aLrvwYbXVOMPLEXqiRTYYIIMsDCI1g4nCQPWeJVH48WJInPga5A kgz46ovOUYAVwx5p37Se9virCj598xiqSFDM/84PrwBgDM9H2iUwpwMZOLqBZLG/ZIBqU0pxe ASVmgNQ1Ap6h5HW5nMOb70qXsx7thBICAQvW+d4d4a/qSlWXUTW98015/zxE4nzGYqRY9yy1F alAsTcGdFviVn2NdFSmkzjZinS14M/WUpgmZTVzwIgu9cjvC4lAO4g8xaTpD/urBRQAIL2qrf 7d/MPr+fizC5u1BTrRivUE9Hp9Zk7qDl/8zTWu2HG5gdMquTnWHIqhFOi2GRF8jPT+c119Cvb N59uHYdJMz9Wr4VjPFUyQWViLqzs4bzwUo8K9But1mu7QDEEZBMBGZRn2H2tkHkvOyUUSQoCn nylilsynOSnjz+JSzYRAkiQhG/U8rKCOUsU4NA== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-bcm-kona.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c index c5536a5..9fa6d3a 100644 --- a/drivers/gpio/gpio-bcm-kona.c +++ b/drivers/gpio/gpio-bcm-kona.c @@ -568,7 +568,6 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; const struct of_device_id *match; - struct resource *res; struct bcm_kona_gpio_bank *bank; struct bcm_kona_gpio *kona_gpio; struct gpio_chip *chip; @@ -618,8 +617,7 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev) return -ENXIO; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - kona_gpio->reg_base = devm_ioremap_resource(dev, res); + kona_gpio->reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(kona_gpio->reg_base)) { ret = -ENXIO; goto err_irq_domain; From patchwork Mon Mar 11 18:54:45 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: 10848157 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 B29D11823 for ; Mon, 11 Mar 2019 18:59:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A02D128B03 for ; Mon, 11 Mar 2019 18:59:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93E9729190; Mon, 11 Mar 2019 18:59:58 +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=unavailable 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 50B4428B03 for ; Mon, 11 Mar 2019 18:59:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728132AbfCKSzs (ORCPT ); Mon, 11 Mar 2019 14:55:48 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:54119 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727548AbfCKSzr (ORCPT ); Mon, 11 Mar 2019 14:55:47 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MdNLi-1gU5Kb2PsO-00ZPqw; Mon, 11 Mar 2019 19:55:29 +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 06/42] drivers: gpio: cadence: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:45 +0100 Message-Id: <1552330521-4276-6-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:TnlavtKLYBbVciSWQoxfOstD/w0zfiP9JUgwX94RYLzv+rlDm94 qAXzof8+TL87PcPvRaeNieXbS8Bt/jzNUNhhPtD5YMPWuV1q8QITUQ0zpGJ0w65qawII58m Um4ytRH7CzElFwnXBM3NH6IvsEL6+UFNEzleevNKDa950pwI7rw5ewCjLkIDOFjZYfVo8AG cklk8KWtf/BsFfVHrXlnw== X-UI-Out-Filterresults: notjunk:1;V03:K0:3KoZQwJFwEU=:lZo5SPJBWGZyYVrPLAtXs1 fgHGIatG5Ah/QvA0YNlLe1yGgiggb+z3aguZ/lcXPdY6+vUNaKznKr5fWBJx44FyMJM3hWdkS rQPSgB/LlLVKjfmyZ5IbC4JiaoKmir7Ppqog85VxmXrpWdHNwJmX1myoNVJEMC/2ydp09KgIT joATTuRlxk2SxdmUENujUvj/7zQBC6VMmviikuzo5pEtGFZZv4WVPCZ++30FN2E607vX2sB/+ YPgZa78yK1bH9UwLHIv1ZI+1U/ICm/kQ1i4dk57Jy/PjiWay2XZN6oiXHe/kiYbYwiXvILCt1 a8A/gFDwNhxVYr8aakmnWiTNNSu21OPFAhA9Voe2zRP+YP5fQ7LwdgyR9JUtt5wKO6o9DRwXJ 6UflC9tGVSrlW2SotWKu78fSIc9jizAUcBVzBXcxqSUxNgWOTkkRD2h2QFd/KEUA+h3mA/45X WKy/OHAqNPa3y8ywYoBz6h4aGQpDIPEOtPQ/xxnG9VVknHNkP8gkziMfryZ/JML6wSre4wEEp GCvL2ntFNdl27gkxptcxG4Uuzc60FZU93NsYy94Tc0fPBqTjd8osRnw/b7EeltexnRP8Z+V8K DLN3VGnbLsTpcx49YOw1OP3ivKXbkJvbbSPCQA3iLpV6O4hsn5/syjT7BtXqJB5AOLXMD8TF8 ygB0bowwgBg9W7O3FksVqsnKZf+xEHcthT1zYaxIApeEvTd/F2wkm97FC34J+RC2j84jTzwTk +vG11zDRhUlR3borGbD08LMJiw7scAJ6h0jRmA== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-cadence.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-cadence.c b/drivers/gpio/gpio-cadence.c index aec8d5d..712ae21 100644 --- a/drivers/gpio/gpio-cadence.c +++ b/drivers/gpio/gpio-cadence.c @@ -148,7 +148,6 @@ static void cdns_gpio_irq_handler(struct irq_desc *desc) static int cdns_gpio_probe(struct platform_device *pdev) { struct cdns_gpio_chip *cgpio; - struct resource *res; int ret, irq; u32 dir_prev; u32 num_gpios = 32; @@ -157,8 +156,7 @@ static int cdns_gpio_probe(struct platform_device *pdev) if (!cgpio) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - cgpio->regs = devm_ioremap_resource(&pdev->dev, res); + cgpio->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(cgpio->regs)) return PTR_ERR(cgpio->regs); From patchwork Mon Mar 11 18:54:46 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: 10848153 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 47A0214DE for ; Mon, 11 Mar 2019 18:59:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3540228B03 for ; Mon, 11 Mar 2019 18:59:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2873F29190; Mon, 11 Mar 2019 18:59:56 +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=unavailable 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 D397328B03 for ; Mon, 11 Mar 2019 18:59:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728153AbfCKSzs (ORCPT ); Mon, 11 Mar 2019 14:55:48 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:56969 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727501AbfCKSzq (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 1MI4cT-1hFDeP1WmV-00FFvN; Mon, 11 Mar 2019 19:55:30 +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 07/42] drivers: gpio: clps711x: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:46 +0100 Message-Id: <1552330521-4276-7-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:/RF4+Rqgwp3EesiMym7nA5aKa7MbwCv2FVWOK5zXCDf4K1LG8S1 Oc4U2uxxjfsgBLRUedR1evw1MShNKZOCv3vTACVu1PAZH1LDP23rFRXTkUR7qU+CSHtro2j t+DR9CHLHmdCMlMuZD6cj+uwpXWap3heuqju3RFq6fKgIuETYlwgQdmlYgJ/+rT3sj5+IhR D+JcPNjBYP4CKwa3gdlNg== X-UI-Out-Filterresults: notjunk:1;V03:K0:3fLAYJCxLzo=:zkKas7Ex3kcKsSg48vlMcC 9Uj0T4jp1tnk7NG2974/HskwKeD82TyUF89bHFBHtVYuLVrN5iEiCdcEHh/xh3cJATKRQFb/5 6gxGsQBaNcXKbM4y/Xgyd6Ug5q8MbqOh8K/Kjohfrps/gDoXTfNedfM/2SQbziHiWiwPoenk/ drzgWHLjxXVRwve0W6Ka2ClFBUp0weLzZuL6PdQTifkjxMyj3gvp9h7VDgjkSECC4FiZu4J07 WjXX28F4EIsXC/7dyaVJkt/he3UFTgOtQ7LmsNcxrI77ExVnmio0w9CK8nsJQ3u4XOxLba6kC VXSRdda0T5fat18VnoEJgLo2aPb94YckNYHpASB+w6OW8ZtHV2yWaE0XfPBzyYuwK5+gBbGIC 6tkHijCKQJKt9+BhBWHKaukNH4bAmIZPCNzXcCIcIGhjfozIs1t4+hDKjRMVwbzyA1XZauRI/ EwXVUTaAFUuWAusMacBQ65GiphgGhpPSwGfoS3X+mftw2Jt3Yf7I6KrXa9lB4J2kUnIP/ats8 Aqgu+GA1Zuu9CikQ9HWbw3CDZ7KBiKL1rD4yjcMqomv6fL6en02CXyrTByz+CXQtTINHVXgZz V9nb3F1otONzOUEpJXISQlc/c5KLuPAAt11CfWx0U7Ik1H3q/lG8ZHdSCx6Ig+5BbbRaCoLR8 9wE+SSGLXjZlKhhAl/0L2hLOy4uXN1VP2cU6mzbvPrB44vgNvShqNLmFJPWir7pioFwTprO4Q Uipi8g4y/oO7IOsj3ECw22JjuKyntRRFgAd6CQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-clps711x.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c index 52fd63f..0fbbb0e 100644 --- a/drivers/gpio/gpio-clps711x.c +++ b/drivers/gpio/gpio-clps711x.c @@ -19,7 +19,6 @@ static int clps711x_gpio_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; void __iomem *dat, *dir; struct gpio_chip *gc; - struct resource *res; int err, id; if (!np) @@ -33,13 +32,11 @@ static int clps711x_gpio_probe(struct platform_device *pdev) if (!gc) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dat = devm_ioremap_resource(&pdev->dev, res); + dat = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dat)) return PTR_ERR(dat); - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - dir = devm_ioremap_resource(&pdev->dev, res); + dir = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(dir)) return PTR_ERR(dir); From patchwork Mon Mar 11 18:54:47 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: 10848007 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 53F6214DE for ; Mon, 11 Mar 2019 18:55:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40BCF2929A for ; Mon, 11 Mar 2019 18:55:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33CD7292A8; Mon, 11 Mar 2019 18:55:49 +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=unavailable 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 E68622929A for ; Mon, 11 Mar 2019 18:55:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728063AbfCKSzr (ORCPT ); Mon, 11 Mar 2019 14:55:47 -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-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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-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); From patchwork Mon Mar 11 18:54:48 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: 10848169 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 C6AB314DE for ; Mon, 11 Mar 2019 19:00:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3728292A8 for ; Mon, 11 Mar 2019 19:00:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7AF3292AA; Mon, 11 Mar 2019 19:00:45 +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=unavailable 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 60D32292A8 for ; Mon, 11 Mar 2019 19:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728009AbfCKSzr (ORCPT ); Mon, 11 Mar 2019 14:55:47 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:55781 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbfCKSzq (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 1MGA0o-1hHglD43Ho-00GcR0; Mon, 11 Mar 2019 19:55:32 +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 09/42] drivers: gpio: sprd: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:48 +0100 Message-Id: <1552330521-4276-9-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:AJj9UQ36ZRPYaJj/cNVlFIAl0ioap3o00Av+q2urgkBgCRKVh/Q kfZC/XmZS+MgWjzlqujo7UVqi4ORrEIDRai/9rYJ5MID4xoRfHFgYllx0sCVvFATF7DTFo/ MW9ALZ1D4J1q22J3A3msbPK7NPercuiAOJBKqeX9WeCb0y1coewWU7HeStFM8rlTFOsW5tu bIa9WNBsbWos3Rwuhj7Gg== X-UI-Out-Filterresults: notjunk:1;V03:K0:D5Tp24xLAsY=:YEqb712ctBBfaqRu8uWF8+ qRkSSl0bILKe75Cbz44gMiyBXpaYDH30BCj4mnqyVaA10nT9zNmk43zqJvv+StSPHZKKvGOKe 5oI272hfcI2tH4lgRJYf5CiFt9ow7kiehG6R/1cbQCYOj5dD87YskJVaAkzLTi2AhRIhtXBrv bo5+DrVVyzwAlhirlWekdmVA0kTxuHybBQMIRf6YXFkLhDpzhgMnjlj10TlpYoKvNUQuNa7xk 0fA++AVX5Yhmis90ybB8S9YMMTOY//hIiaQEzbJU+s89m4M8S+Y/CHLb6lwYYoHOYnPx08X57 hKvOE5RGztWSFjw8AogPy92YxzWbQowSwQuouffJzXO8J0nhvaUuHN2hRntwe+aJm+eA0516K qCwsEee0rciOQ1Sc21EO+VemrHD7aigrd7Qut0zHecoMJdIbRpulSsv+CXAq/0Rucx3OJEmQH 0QXsOzQw4WSCZzZCkeDMiKSmMO5dnNzlBrYZH/UCVDLXW3om6f9inrqVWTe4vr/X8WpEutW7d F54s4EpyKj6ZViHgmeyQJG7WzCQJdFSAnfs2fxNcaoQRVu2llk4k9RVTmMyfPHupv/NF2x0Nr 80T9+GXlzOLff8vbDEe721L/CjlU1p+SecjEb1hTENrcrhwl22E7M9wY0pWoZEeMUx6k5i7vt xJrEjFOX8e7ZrL2SmyKrcRXk9KKfHWdf54hQJfJdGh6i35XDSdgZ5J7Kzgs+YbsiG0AsUStED YtkAhSHdYPEULyAXjWs0GxW4Q+xIXLr2rqfuuQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-eic-sprd.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-eic-sprd.c b/drivers/gpio/gpio-eic-sprd.c index f0223ce..c12de87 100644 --- a/drivers/gpio/gpio-eic-sprd.c +++ b/drivers/gpio/gpio-eic-sprd.c @@ -567,7 +567,6 @@ static int sprd_eic_probe(struct platform_device *pdev) const struct sprd_eic_variant_data *pdata; struct gpio_irq_chip *irq; struct sprd_eic *sprd_eic; - struct resource *res; int ret, i; pdata = of_device_get_match_data(&pdev->dev); @@ -596,13 +595,9 @@ static int sprd_eic_probe(struct platform_device *pdev) * have one bank EIC, thus base[1] and base[2] can be * optional. */ - res = platform_get_resource(pdev, IORESOURCE_MEM, i); - if (!res) - continue; - - sprd_eic->base[i] = devm_ioremap_resource(&pdev->dev, res); + sprd_eic->base[i] = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(sprd_eic->base[i])) - return PTR_ERR(sprd_eic->base[i]); + continue; } sprd_eic->chip.label = sprd_eic_label_name[sprd_eic->type]; From patchwork Mon Mar 11 18:54:49 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: 10848145 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 A2AE614DE for ; Mon, 11 Mar 2019 18:59:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9181528B03 for ; Mon, 11 Mar 2019 18:59:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84F1329196; Mon, 11 Mar 2019 18:59:42 +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=unavailable 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 3F592291BC for ; Mon, 11 Mar 2019 18:59:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728252AbfCKSzu (ORCPT ); Mon, 11 Mar 2019 14:55:50 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:51787 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728193AbfCKSzu (ORCPT ); Mon, 11 Mar 2019 14:55:50 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mc0Aj-1gUtTv38Mp-00dWz3; Mon, 11 Mar 2019 19:55:32 +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 10/42] drivers: gpio: ep93xx: devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:49 +0100 Message-Id: <1552330521-4276-10-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:j8KA/RQH12SWfiyQaOsU0v/qysGKz1aokrGDRUNjcHYUWQXncQW QHQ0rKBC+qB/lirD/U0vETMbCKULs+rBGvdDCb8nw6jYZujZ8deitfBJvX2FQa+/M6b4dpc aLU+VoZks1bheGjJT1dWceOaN8lT+Vgu8OSDbIGRQZlhunRgkMwYqycxpsQReBvvWQ+JJVh Qi8cHUd/u6yvMMGER29dg== X-UI-Out-Filterresults: notjunk:1;V03:K0:6FQpd0Xlx0c=:PA7OMQRzE0jDOJvfk+liya 0/yYVRkfV/VoTfKW7kQyCLUEKCSr+YJxqsc2FWdxLsrmSUWbNNrpPmIbk+SUao5ilS5xhCaa4 sWwKacCh1oMBGri0wj/TeI6njNSunI0MTPmODvNjGEJfEmC9gjZxGSY9sK90iNMY6th6lTc9u 2Uqwl8vq52lQfzKJ6XRjLSKSfsph731D35lzMcNFajb3KSwbNOFOJhf0qQyohqJQ3CaQfm9u5 jRE0Ob4KEe6do2HQWXEKjleSZMbuRnLBUhZ2vJvwEXR9cSO1gGXdubpF2gsz/uzYSw5qJmWWe IrHXX2mKZYChxYbnSA6DK9YFQ9HK143dtxBQ7gWgY8POTbMmIigRWcwOj2JCJKQVQK1CYUr7Y 000y3KB760ST3z9NUlSyc80du28OSEHyOG8RVp3+B7yJ4eWwNDMi1Vjgy4ILYKUmSFo+i0GpH En6hkjq/HXCxsa1KbGA/rlbBP37IQ7kcKv4JncbWrg3nDCtWtzhYml2xU7ZPv27yDQO1e0Jxy BxIwQoyluGPLrEYbDzgfdLy4ht2DF4vXKxqCi1kqJ83y4QgoTMYTOmoeqN7fqkughj78iEnw7 Iu9kUXeLYjsIQfDUfbq8WyuqBpCAJwODwwBUHviggErvK8tJFjTTuNPb31grfM1MBJhwmj/va 64aVMiYyiTi0XI3MZaSCf336yw6lhHVqhngT6ngno+uGJ/9yuDYSIUnIMM3P6X+Fbaol+jIpp luTKlLpulTCyxao4UKKKefS0l8XNlLcIaeEn8g== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-ep93xx.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c index 71728d6..52e9a7b2 100644 --- a/drivers/gpio/gpio-ep93xx.c +++ b/drivers/gpio/gpio-ep93xx.c @@ -393,16 +393,13 @@ static int ep93xx_gpio_add_bank(struct gpio_chip *gc, struct device *dev, static int ep93xx_gpio_probe(struct platform_device *pdev) { struct ep93xx_gpio *epg; - struct resource *res; int i; - struct device *dev = &pdev->dev; - epg = devm_kzalloc(dev, sizeof(*epg), GFP_KERNEL); + epg = devm_kzalloc(&odev->dev, sizeof(*epg), GFP_KERNEL); if (!epg) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - epg->base = devm_ioremap_resource(dev, res); + epg->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(epg->base)) return PTR_ERR(epg->base); 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: 10848139 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 9DA1614DE for ; Mon, 11 Mar 2019 18:59:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C5D728B03 for ; Mon, 11 Mar 2019 18:59:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FCBE2913E; Mon, 11 Mar 2019 18:59:39 +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=unavailable 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 3F21528B03 for ; Mon, 11 Mar 2019 18:59:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728401AbfCKS7b (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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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); From patchwork Mon Mar 11 18:54:51 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: 10848133 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 C50121669 for ; Mon, 11 Mar 2019 18:59:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8952287CB for ; Mon, 11 Mar 2019 18:59:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9747528623; Mon, 11 Mar 2019 18:59:30 +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 40EAA28565 for ; Mon, 11 Mar 2019 18:59:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728284AbfCKSzx (ORCPT ); Mon, 11 Mar 2019 14:55:53 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:51527 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727611AbfCKSzw (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 1N2EHo-1gv3Ki1VhG-013cSO; Mon, 11 Mar 2019 19:55:34 +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 12/42] drivers: gpio: grgpio: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:51 +0100 Message-Id: <1552330521-4276-12-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:s6D93lCp6TjmlwWHE0LPTB3uwfBHWA3wRlbxYC2/ePCwu+67PpY 40Uu6zN3AEC93yjI2AepCtmDdHKXCSIv4f0iT+Z+JX6goB5glNPfcH67nWwVR/FK6+1FLY+ G/7yJnoa99c80eDxw5MvgJqfOvxQb0EiOF+UO6ZcmfuTARj7IhIC0nkgaqTQAuewpDnXeSI 7RxpG1YafXgoekd3rJtYA== X-UI-Out-Filterresults: notjunk:1;V03:K0:rozpdole5G0=:eYCGBnHa/yl7Q0RXq2kgVv atuNx/fbrkDZHbEWt+SqGExFrhum4lzxLxqnTG5Pp22D1dbCLtcHDKJFMaXVt4Px7YZ5H2Qmh WliCa4GdCahHgWBDivvWQ7zT6kol0fU0cUjrr1qNWUtAwsbs4gt1i19jgRPoFPvYJcX5o3IRw v4XoQQjP74PxOJABl9b+3TBEwqVdki4D1Drd1YfyZY/eJZaFRQFsJqL32xMWHmXELcB9uPWZg +xAEdgz351J7EEpuCs023efOwxvS1iS3nzkLt46+vsG6CvGUAmq6Mu0VU8IvnR+vngptb2nM8 ONUP9Kl5TbXBaABfFjAQdXKcwfiQvxDTNFSEUia7KcBU9842rEXCozba4mshgPobn3MeRBCOs s2dFd3mzY2E/FhrAirCPXqRkzVFKYII/lcjtQ1vgy4Tju/u/TWpveAC7WuvqBdq53PzEcnQjN 7TD+JClk07D0sIxRaGKLPwz6eV0jATNThkSkjaVRUdfr+gP0NP0YoIdZndSxZUt+/BseYFTQ7 dGPmUZJn8WYhK9MbwoiNi+ZPCEX8vjjHJAixfNApH8W1geAlO5d1aoMlxiD1MgmeDgE0B/wNk BrpFxf0zWSq2lwWd9yJLcyz5WnsfY6gOjDXYYS5UQp9/HXxyrDM8ig2ndx5vgRlBrRZQOj2Fq 72BLeD11NEXixMpCYgGCqauETBkfOauf0IWcxCvW9IVrawLS5QyYqm/dAOP2k5gOtKiPMoZfM TgDHXOgV4zVEq2r1h1ev4t3Bz9pLsB7innDl/g== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-grgpio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-grgpio.c b/drivers/gpio/gpio-grgpio.c index 45b8d6a..09d3dac 100644 --- a/drivers/gpio/gpio-grgpio.c +++ b/drivers/gpio/gpio-grgpio.c @@ -333,7 +333,6 @@ static int grgpio_probe(struct platform_device *ofdev) void __iomem *regs; struct gpio_chip *gc; struct grgpio_priv *priv; - struct resource *res; int err; u32 prop; s32 *irqmap; @@ -344,8 +343,7 @@ static int grgpio_probe(struct platform_device *ofdev) if (!priv) return -ENOMEM; - res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(&ofdev->dev, res); + regs = devm_platform_ioremap_resource(&ofdev, 0); if (IS_ERR(regs)) return PTR_ERR(regs); From patchwork Mon Mar 11 18:54:52 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: 10848099 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 AC1101669 for ; Mon, 11 Mar 2019 18:58:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93611292A8 for ; Mon, 11 Mar 2019 18:58:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 849D5292A9; Mon, 11 Mar 2019 18:58:55 +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 32D392929A for ; Mon, 11 Mar 2019 18:58:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728644AbfCKS6c (ORCPT ); Mon, 11 Mar 2019 14:58:32 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:41241 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728056AbfCKSz6 (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 1MfqCF-1gay1m0jST-00gIfX; Mon, 11 Mar 2019 19:55:35 +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 13/42] drivers: gpio: hlwd: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:52 +0100 Message-Id: <1552330521-4276-13-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:q4YtDZcZH+cI7Jb14ysh8kccHH2aDAoWm0rqkfVG6xg/byB7A4p vWshZhMhqhzRJOZTbztKX6iqCdBPceHFFSoGYCA95feqAyK1S2uuCsCfr8lsebYRd6kkReL o3nAzhgJ8ykOWM/mYR6chPuG8cMj+CpYDwN9zEb8un4QE/vfSlo7kvNbqQSM5GLygQ/roQW dvYWHbsZdveDkQftaeHcw== X-UI-Out-Filterresults: notjunk:1;V03:K0:TzOq8Og7p9c=:cO8YXchq43dqG8E2t75SA6 wuoJc6R2VV1kKt1s7u9zzXnD6E+lSZH6YPb6YXsg5w+IYNQszSaZmDh4kP9LoNn/T5IhGjyqq twP5mW/fZBj313krfmmC66gBaNvM4OcU8gQP4RMYB6wmKGim4RpfTVf2BixGpY7SvhrcQEEmC 5ghUfgrZhrS0Uu6W/6yHcWrL39ZSuu7LShyzMz9IYcArWNF4Evg0QwYTPuV3jE29ddFFybizq 6p3X/TDgxGHhBQsx8QwhcCHXzGvck0zN7iD3jYVEB0pkKrZ1UxLgjhMHD4PZFFzCL4EofL6xj ZJeXVVR//jOSOyDFCwO6A+i6NGhbAfxZgHa3ZGtUNQdQd1yMQgi4LLWo/AqycC+0AOJIv7k8w q4RZlgc5TuzbUVpg8lBMCRgw6k0RC+gZMlKyysUyMXLTDW2Vhvy6+u6Fwy138t7X5GWi2iCSw 0rwnYxB4eIoOvyVVrcZCv23NqvxNOXxnTmKIaX/n6Mv99R2lzUOpRWqDDx2fSIonU6BTl9lRe z/QueI7hbDRk4q7RAsua5QnDWD5NvpK55srszR/0zhHN6yORwTrSl2GCMUSmi3RcKXy6Omkxy gnoCIj/PwiMcDU0/n/8D0V8UHiN8luYH/xtIJB7NxrHw2+Un5C170aDjQaFgss86nwH8GfpUB J3l9ITyqMiixDlW53PrzQIJNEJeBwEyLgEUco6amXSbkDMdje11TkYaOaQWuod3jdJlDCZWkC 8CUJPhU8Tn69c49gq25Xn1Vo6jhGlrX6Bn6beA== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-hlwd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-hlwd.c b/drivers/gpio/gpio-hlwd.c index a7b1789..e5fa00f 100644 --- a/drivers/gpio/gpio-hlwd.c +++ b/drivers/gpio/gpio-hlwd.c @@ -208,7 +208,6 @@ static int hlwd_gpio_irq_set_type(struct irq_data *data, unsigned int flow_type) static int hlwd_gpio_probe(struct platform_device *pdev) { struct hlwd_gpio *hlwd; - struct resource *regs_resource; u32 ngpios; int res; @@ -216,8 +215,7 @@ static int hlwd_gpio_probe(struct platform_device *pdev) if (!hlwd) return -ENOMEM; - regs_resource = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hlwd->regs = devm_ioremap_resource(&pdev->dev, regs_resource); + hlwd->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(hlwd->regs)) return PTR_ERR(hlwd->regs); From patchwork Mon Mar 11 18:54:53 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: 10848125 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 A049014DE for ; Mon, 11 Mar 2019 18:59:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89B7E28500 for ; Mon, 11 Mar 2019 18:59:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D49B285EB; Mon, 11 Mar 2019 18:59:21 +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 330B928500 for ; Mon, 11 Mar 2019 18:59:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728297AbfCKSzy (ORCPT ); Mon, 11 Mar 2019 14:55:54 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:53489 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728278AbfCKSzy (ORCPT ); Mon, 11 Mar 2019 14:55:54 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MbSTX-1gWYAw44dd-00bspD; Mon, 11 Mar 2019 19:55:36 +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 14/42] drivers: gpio: iop: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:53 +0100 Message-Id: <1552330521-4276-14-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:fh3NVv+DDhImpN2P94wWM/OTXPB/27tcdCwhRk2pGUYPKpGhgTo 2eenWqURDRbwCC5iDgwQwH40x5pwpZJN6odGmoJedyFve2er6kfDSJ0kFUtY0uGUi9lulDu ib8XBHjjw1Iav5bzkwEVDE05Xyjkl7br7PJpRYCTIkyZLaCn812NsTPdTn5P0I+qD3qZWqe dGBSETcpPDYz56wpaO0SA== X-UI-Out-Filterresults: notjunk:1;V03:K0:dAQe3WHFSOc=:IYuwzhNSPbz4MRHiLo6ZFr SifZF0gjHtJvJ38MpUB39SW++KCB7uDadiJ2W43gI7DOa5yUMi5m6i7taFBPMInKVoLJeRJqm e0pqXcPDoxi/zLHqAUcu8+TAsaldsYAwQsYw6o3Ax0SJgXXGSfoz89liXFxG3FqqiF/gzsaZh tzPOymPtZtTs1h71XXu/vRLQI7Bo/XWItAjhKqHKZ+hLKnbXMXp/1dNW5RVL3yRxtuk6O4fy2 q7RkHtDae5z5W9PXhXxCoqw0YRFRJPOy+92eRKVfSzbDVlXZOkJrsw/7C5xvAjuf39elSTvpK Mg9v6eY65xIpc1DnsUVhSdg76Ldf9uReKEx5oPm+BJsl6QiarGp8ty5cgbtXiteFm2AS0RwQB 9fXXVuIkQSmRTIkvPC5YnuwPQHqniD9AP770+0tyqWiLLAmHZKxDTxeVu0rUB+SYVQGVr1ueZ 5VLiGo1h1jSoqTOHkRK09TfS1tSq+D/tY5TZWWm1dgfNOgohocdF1i9LG08qta3ex1QIUawt/ kPLxoe2CqasAuAS7kHL8vb6pa557Y0T4V3wgDoNNRoorwVxwd8QQjFN6Jqs3/nOna42xuqbYo /6EsxflyGe8cD6XzKE0cpEZ07j++u7co3f7Hz9fzM4ghGTerNb/v3p4Cr40Gln5qMassy2YtG T8UZVdIaaOrAGJ39BB3cBin6DT+2byWWcpTftiF6FkW/wp7cf1oEvzQQSVHAc4NtSVZehtQVv 8R8Pp2wmv/a9UYTLZ4NM+1a/Ve6MH2o1Rc0tAQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-iop.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c index 8d62db4..11b77d8 100644 --- a/drivers/gpio/gpio-iop.c +++ b/drivers/gpio/gpio-iop.c @@ -21,7 +21,6 @@ static int iop3xx_gpio_probe(struct platform_device *pdev) { - struct resource *res; struct gpio_chip *gc; void __iomem *base; int err; @@ -30,8 +29,7 @@ static int iop3xx_gpio_probe(struct platform_device *pdev) if (!gc) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Mon Mar 11 18:54:54 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: 10848129 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 0693914DE for ; Mon, 11 Mar 2019 18:59:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E57AC28500 for ; Mon, 11 Mar 2019 18:59:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9456285EB; Mon, 11 Mar 2019 18:59:29 +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 82E0928500 for ; Mon, 11 Mar 2019 18:59:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728311AbfCKS7X (ORCPT ); Mon, 11 Mar 2019 14:59:23 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:34513 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728272AbfCKSzx (ORCPT ); Mon, 11 Mar 2019 14:55:53 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MOiU5-1hQJUd3HoN-00Q8xd; Mon, 11 Mar 2019 19:55:36 +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 15/42] drivers: gpio: janz-ttl: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:54 +0100 Message-Id: <1552330521-4276-15-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:ve+tfx0VASc3CTP5uMOzIY8ePUZgihkSjeCOvuvAjT8dkoVTiRm VUi+BG6kbJMrxoBeQLrQr1J03ad0hJiTiE8vuZnHNJ2SODG8GPESBKAtWn0Uj+DIHN0RoMm vuVNuZu/AjPgQB39tKGcUujjJqNDpzwjpquZv+l25efUXAOALTbp4SpTiVQtjg2o34jSdPu rJtVubtlLO/8/ELLJsGeg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Nt2KbzM0omc=:Zqqi7tRCkx6cMUo4bqynKL f+zLOzgaSUeZqWpK+vntExIfoMW9b8R/BhbQbF5t/395nRp006frrm0IovMaEct+Q4UsUXHF0 VemDjZVAAdElU0YGFMwZQ1QAp8M4I5w0ITdYHj+nb+FTZRH1RUhXsQ6D9q4OaPtTnXZFPmOWz CdcH3B5TPNibam12uci0TPQIQg7HVbnagsbFn/dLJth/DpVV/5MVFGbSxQMPSAXX4sqvUXXWp d2fltZEaR+CGIAbGI10kuL28WFp30uvyrdrvqIuc1qDDzMZI6i5raU2mc2D0GD8B4Kn6OyJLl AvEXokuDHaq3FDc4hZSGpGCfg9diiL3/597xijqJGWe1SVdvX0ePFsxU8m1umHp522rkrIt6x 5Lu8UVNq+YU7tC0IfW9WtXIayrA24ecRh+VrbS6rsmcC/LfWEmOb9yQATz8j/wqQDI3HQAcii h50R+PfkkxfdlOSnFap6Dd9Dyo62ZJ3lhzD47A20JwUwKlm94wdkOh5ls2gQ9XLeUS30syo66 dHsMYAtGH4OhFPbKRmDaugLpForHKr1w9avpCrbV4Pzb+qL36pAzoTtS+/stggjNpexHIOqAB 5u0urf8KADob7BL3rfJPhd+JcntwMmcWM8Imx7kc8K/dcl8zQThd9FmpEAU/yUXXv+pc9kaXf ZFZNmukW2sSEO6o0tQKgn0Z1MwpD9Fibit4iLvQ3pVASBvQSC/VoSZs0d3A19Wb+9Cs3waoBZ fKNW2YQwB9nRfPktORVkZmi/sPklO/xhH0nAVA== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-janz-ttl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c index 6b9bf8b..b97a911 100644 --- a/drivers/gpio/gpio-janz-ttl.c +++ b/drivers/gpio/gpio-janz-ttl.c @@ -147,7 +147,6 @@ static int ttl_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct ttl_module *mod; struct gpio_chip *gpio; - struct resource *res; int ret; pdata = dev_get_platdata(&pdev->dev); @@ -164,8 +163,7 @@ static int ttl_probe(struct platform_device *pdev) spin_lock_init(&mod->lock); /* get access to the MODULbus registers for this module */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mod->regs = devm_ioremap_resource(dev, res); + mod->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mod->regs)) return PTR_ERR(mod->regs); From patchwork Mon Mar 11 18:54:55 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: 10848119 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 5E4D91669 for ; Mon, 11 Mar 2019 18:59:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D2AB28500 for ; Mon, 11 Mar 2019 18:59:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40F1E285F2; Mon, 11 Mar 2019 18:59:13 +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=unavailable 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 ED01928500 for ; Mon, 11 Mar 2019 18:59:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728319AbfCKSz4 (ORCPT ); Mon, 11 Mar 2019 14:55:56 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:57635 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728281AbfCKSzy (ORCPT ); Mon, 11 Mar 2019 14:55:54 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MgNtR-1gZJKg2Swp-00hwpN; Mon, 11 Mar 2019 19:55:37 +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 16/42] drivers: gpio: janz-ttl: drop unneccessary temp variable dev Date: Mon, 11 Mar 2019 19:54:55 +0100 Message-Id: <1552330521-4276-16-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:xPkcHUo6RopzkqV+mh4vpPChYf4VH0lnv4qK/tFVXd518EX7goP fE+h/waGMIQcBXFyHl2mq0TNuKHgHulmHoMLbXWNaKlaC4lw9WQVO9LBFie7iE32I45XUI1 KyMHsAW1M6/GmZKIMWnBmE8cCGG/5qnzhk9RUwoNViVB860YxZI+TDscphdHRZ+B2gdThZ3 0FHTmo3xgE+FUIbLN8vEw== X-UI-Out-Filterresults: notjunk:1;V03:K0:8QpcY987fuE=:/gKt4XdUX6RqHGucbXMHoW xCMoIPSMVtUg33YrA3fgelxDXwIeXZhifNd/U2cJMB7pOqFNdknmnwiNxmMxTcM8O51Ap6cR3 i2XbRBwlL3OdIm3u7LxhvhxCwHm+xoTjTJBV+s3RNJINRdzKJ5p/URe7pHc9os/zG0n+2za2d A6GRc+kZgVAbTore7ObSc6d++ZnfOcK3ANNatOUF/DUtct3LcPwmiMdZTuP6qiv3zRahbm+kR c8wcrFWF8IOjfCYGj42TjSxz/9HhPs6rHIXyR40NQcziHHQMDonaGv0Riui4cy1diwC0cwq5T PfbaHkkp1w7Hox1xPQfgxzTt7BcB9b3Nznwf20Kr4vmL323d9bHGaIddTF8sJtQbPw5aqCIA/ sQtXJ8wPGsZqqFpHR13iRwYj0plB/C0sqlRBpi3YuGp0qbWnsXDSHFdv0q1QWQ3zH01jB/ipf PxdfD2epV+Xg2e6cFaxdB+kbdulcMAOYXHFTq17BXTATwIRRCi2b+1fYr49gqtmhSh+RrVrwF jVysRUnrx2llk/0JLN0MAi11znldRchik9TLq8Urojpz7dPyhxf1H7kCAlxQFe8CB4kXwhi6G UrIiqrxjQTKxFwTDy3od33T9Xm6SAcT+WwJlYS2kX1bk6iYcoIG7yMcTeD88stMPTrL4I44d3 6PffckfAXooOoxGYn18u/kzXqOWaExACZ1qW/7T9jreSlUXuW79gbQJrp6ZxET5/K806+KOPu Abz9Zk1bn/SEYr2cEczrVeY3AmN1rUC96W1ugw== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP don't need the temporary variable "dev", directly use &pdev->dev Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/gpio/gpio-janz-ttl.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c index b97a911..91f91f6 100644 --- a/drivers/gpio/gpio-janz-ttl.c +++ b/drivers/gpio/gpio-janz-ttl.c @@ -144,18 +144,17 @@ static void ttl_setup_device(struct ttl_module *mod) static int ttl_probe(struct platform_device *pdev) { struct janz_platform_data *pdata; - struct device *dev = &pdev->dev; struct ttl_module *mod; struct gpio_chip *gpio; int ret; pdata = dev_get_platdata(&pdev->dev); if (!pdata) { - dev_err(dev, "no platform data\n"); + dev_err(&pdev->dev, "no platform data\n"); return -ENXIO; } - mod = devm_kzalloc(dev, sizeof(*mod), GFP_KERNEL); + mod = devm_kzalloc(&pdev->dev, sizeof(*mod), GFP_KERNEL); if (!mod) return -ENOMEM; @@ -181,9 +180,9 @@ static int ttl_probe(struct platform_device *pdev) gpio->base = -1; gpio->ngpio = 20; - ret = devm_gpiochip_add_data(dev, gpio, NULL); + ret = devm_gpiochip_add_data(&pdev->dev, gpio, NULL); if (ret) { - dev_err(dev, "unable to add GPIO chip\n"); + dev_err(&pdev->dev, "unable to add GPIO chip\n"); return ret; } From patchwork Mon Mar 11 18:54:56 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: 10848123 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 4AFF414DE for ; Mon, 11 Mar 2019 18:59:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 379B528500 for ; Mon, 11 Mar 2019 18:59:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 286792858D; Mon, 11 Mar 2019 18:59:20 +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=unavailable 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 C7E2628500 for ; Mon, 11 Mar 2019 18:59:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728420AbfCKS7O (ORCPT ); Mon, 11 Mar 2019 14:59:14 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:55979 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728293AbfCKSzz (ORCPT ); Mon, 11 Mar 2019 14:55:55 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MaIGB-1hXRIF1bzZ-00WEZv; Mon, 11 Mar 2019 19:55:38 +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 17/42] drivers: gpio: loongon1: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:56 +0100 Message-Id: <1552330521-4276-17-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:GYCjApWXM9X6oomqeco3SxjEqexphqgfJRxJb4zuI3F7kytdaLT sWgkfZKB+674kMJIXjS2HCUyjI+xiWZEPjI4t9L/PLvv2LNPJqAL6Z64yhGGMV9y8Qgvnw5 umKQVfo2oOcSnfIAgQ13+BxAsYz0Nlqx5+RKXRyr2P49U3ml/n+sbJfH7R+QxWTn5InWWVu 4sxQxIVFxIvh9zIkEDZ3g== X-UI-Out-Filterresults: notjunk:1;V03:K0:ImiAVr0YANA=:UjDYkpismkxisr0fv5Lm6d YeUHiZHlTcVJ4l/864P9dI/SbFPZBhVP6fN/d/6VBSsHcQITVTCbVJ09OPpU7zEK7zBCNux0u A2N30PmVXKNT2ogrQp5xl9YHzi7yW1T6d5ur5ziffu0kELxsRUBIScPwNLPhfBQAtjT1YAL5s snddDuIhW4e22yFSMaFJfuzjnDx2s6y7vNPQWETkDq2iDX0LsmNv9deozPelooiEzSo6hHME7 4IwuiShjCU4QmpiViZZKl15u+nwIdyArxFZlPi+YqStbcKBBKhp2lmKiNKVDprgDhnUPSE4N6 czL85GVEn5FDp/b8cORUk10OrTEUlOVTXk/wcYDbomR4uGnkmK6aQswcDkvkTDxxxFNm4bTsn 5Y1HOJt3C2LquPLouPjmh3tlg7Ps8e3E1Ti0d++83SidVSkBsAEJk3Jv/lBUliIzVCspqRFsE 1oKnDgYI3fUrIn0JGni2bUDVbjHwVGbP4w0jjAczWyCBejJKKzPw1jCpHsCDVZbIroN/I6/mD EY7Gr23Ix+a2DQW6VKsTetc5105eoCfpeA5Tx1KGStTq8Y4DFdS08jQ44mob5K5hursrACVsU t/dpA7GXwB8d/oEcqarjqJ66wbKKlwVadHNUMRzW6UIt+w9r2UGXMF8mdWJ+WW9y3QLE5LXp+ Lhi8UabIdhQL7GygQo5/ohEG+XGBipJKzf1azehLLMTHLuClCsmhW0GjQlSdQxHjO4ORMsoqu DV7WA1l19NDnn2FAtNvuMWFWaRb2cLibQQiuxg== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-loongson1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-loongson1.c b/drivers/gpio/gpio-loongson1.c index fca84cc..1b1ee94 100644 --- a/drivers/gpio/gpio-loongson1.c +++ b/drivers/gpio/gpio-loongson1.c @@ -47,15 +47,13 @@ static int ls1x_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct gpio_chip *gc; - struct resource *res; int ret; gc = devm_kzalloc(dev, sizeof(*gc), GFP_KERNEL); if (!gc) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gpio_reg_base = devm_ioremap_resource(dev, res); + gpio_reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(gpio_reg_base)) return PTR_ERR(gpio_reg_base); From patchwork Mon Mar 11 18:54:57 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: 10848113 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 1778014DE for ; Mon, 11 Mar 2019 18:59:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03EBE285EB for ; Mon, 11 Mar 2019 18:59:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC16B28500; Mon, 11 Mar 2019 18:59:11 +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=unavailable 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 AB4E328500 for ; Mon, 11 Mar 2019 18:59:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728323AbfCKS7A (ORCPT ); Mon, 11 Mar 2019 14:59:00 -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-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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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 Acked-by: Vladimir Zapolskiy --- 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; From patchwork Mon Mar 11 18:54:58 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: 10848105 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 00BDC14DE for ; Mon, 11 Mar 2019 18:58:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDFD9292A9 for ; Mon, 11 Mar 2019 18:58:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2496292AD; Mon, 11 Mar 2019 18:58:56 +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 81E39292A9 for ; Mon, 11 Mar 2019 18:58:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728355AbfCKS6c (ORCPT ); Mon, 11 Mar 2019 14:58:32 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:45367 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728327AbfCKSz6 (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 1MWBGG-1hZuOf44R0-00Xbca; Mon, 11 Mar 2019 19:55:40 +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 19/42] drivers: gpio: mb86s7x: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:58 +0100 Message-Id: <1552330521-4276-19-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:2zcKGunF3nBDqWBrDrcBPztnsUbKWVqVLWOPyE43qsattX2HHxB 9yrLAXKJuGb3E0xJqOzZEzvN9F1egzs/rQIuAu97HxRS1ypr0pprwBYPbkhTNwjOwuSZcjy dDiS8YFbEKnnRd3ok2Y8PpAkxre13ii4OHUzihWR5DakLeRQM/F2R8PsVIOEpdEMZ0kEtyf RmMSbkHiLXLcVd9M+f05w== X-UI-Out-Filterresults: notjunk:1;V03:K0:q6rHwbNAX/I=:dxzBXgirF+9WI9nDDMxuwK mzP4/nMvm1NGqMzuOt3SIc1bRb9wgL60ROco+iKB280KmQmQEshpL+MPGJTHoQCKDy5Thrd8g DLtbjRL7sdheb1aATVUpfbSJv52pT17iA96191jCVrWwBL6uR4+t3mF5wa5UwhAKnlfs4fggW TNxcTBqNs0vaXDsx+4Yasa/97UccZB8BzpvYDM5aptCDBCkpszT607V4AYjp7+LJT/GCk9wI/ /aQgztWJ60rgqKMSyHyrc3dXYcL+tIX2iuM3n25ycl0ezAkA1EaAYoaqzJOGwEPR7VZSUDXC6 zjzyxfzVyoEMEDkixcQpPaHnr6LzFHivRidvKpl/3UG3y/5m3XSck3N4zl0axVI8ylFWAbRea SpFg3Q/SIG3X95fQaazw0bCTU8TjoYgKlmU0nzRQt5jUuqco2mtlM8ohHV7EzeVQJCFbzb1+o wLydR3PVuS4fRNVhvW5JVeKHjxPtYjCuf+7pqTJfyTiaQIHP9o2gIAJRZ3ZvdlsucWX2NgCM+ WVPrCuu0iYVqJ+WPLvksWpq7fiNPIf1AOk/1gzc+05AmIj2fa1h3+DHPpQ1bO/Q8bOUAKTG0K ZcHXoKWoFmR4T4LnuGRFVg8sOHC8sIYjRU8kQYPvOVCJUsxwhhzVjIEpyBKIdlrwn7veXHnNi Q9a2EkHOriujL3zlJY+tRQWzEDRkheQjkEmSinipAsmC0vuiq2P5mJeXURTFaO7cPdB/vO9Hz 70oNDFns1hqf0557aRKLSDWxRZf/DZXaBlLiCg== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-mb86s7x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-mb86s7x.c b/drivers/gpio/gpio-mb86s7x.c index 3134c0d..9308081 100644 --- a/drivers/gpio/gpio-mb86s7x.c +++ b/drivers/gpio/gpio-mb86s7x.c @@ -146,7 +146,6 @@ static void mb86s70_gpio_set(struct gpio_chip *gc, unsigned gpio, int value) static int mb86s70_gpio_probe(struct platform_device *pdev) { struct mb86s70_gpio_chip *gchip; - struct resource *res; int ret; gchip = devm_kzalloc(&pdev->dev, sizeof(*gchip), GFP_KERNEL); @@ -155,8 +154,7 @@ static int mb86s70_gpio_probe(struct platform_device *pdev) platform_set_drvdata(pdev, gchip); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gchip->base = devm_ioremap_resource(&pdev->dev, res); + gchip->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(gchip->base)) return PTR_ERR(gchip->base); From patchwork Mon Mar 11 18:54:59 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: 10848115 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 908DA1823 for ; Mon, 11 Mar 2019 18:59:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76A7E28565 for ; Mon, 11 Mar 2019 18:59:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A15E285F2; Mon, 11 Mar 2019 18:59:12 +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 EB1E3285B7 for ; Mon, 11 Mar 2019 18:59:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728056AbfCKS67 (ORCPT ); Mon, 11 Mar 2019 14:58:59 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:41297 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728325AbfCKSz6 (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 1Mleo0-1gcIWs3IYs-00inmu; Mon, 11 Mar 2019 19:55:40 +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 20/42] drivers: gpio: mt7621: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:59 +0100 Message-Id: <1552330521-4276-20-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:nwyqyqA9VL/K+WhaUHLAmkhPztl9JJ5XmyOE0xfRuw/LBL9XuWH 5PZzrddYvMHqkth0uOZJDx3ULJLS3fNI9GxBaQ9rizswsiuvOY9e7Qm19lghpf7AuGSqcuR PpZUSigDJBCch9qMXLJYX4LNajiNbBU/Oj1LJcQQr36kMKGoRgEmlgQBHcfaYc0YO1SUmNa lC0Dp94560sqeaxffxlrQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:qnqyLbMetcs=:/wtSDYrCdKoqJ9YGH1dVv2 YzIkT7Q1Y2izn9Mrbu5F5uoTFXUdiSYqqBbxGJmZWGE+o4Va+04b3JTC+38VJOQHjG826t4bh obyYmkncBNm5Ln1N1lYQ3AbCjAg3zHzKN3ImfMsdSZUachsXivUa8ZeTh6kWba2LjeBRZ8gcc P7zphK67JKETTiC70Hp1azbsek7CcKJfOQsLe2Lu/0b5mWJyFxEstj63NM+s4jUPLbKAe7+xT 8SfYnMjT3kUclkJBpxkBBgslFO8rqpWlPe2Z9Yrnwbmj8A3Su1/quHt37su/rl5KDfRlpY58d Agw/eetqMIA9NZUBUZAPKeHhKRttwiPPoY9MZ/m7zvXoLUcrw2NtbHYmRR5N7ZYA+jaiAU2rP hw6EIOTHv3nzoxJkMGHNn9CR/S6nnrbU7rAHCgNKFdEMnqXW25KL4/qVv4A/GlJbGjZ3GSc2n dJjWvN4YMBCwjyfk2edde2rJJvrMHLZbOYVHQ9lXg66QrlWmbifJ7i5jGz0BXgHTiNriim7mB B/iUdmWXpN1ORhfHVaK+zK7u0HcHE05CKuJFnLPcV/RgRgRqU8G6KjC1sVUBNuVm6i/+5D1OK tmOAj/PF4m8XF4cApyKIvqq9FReqp+xwHY37NA4FqUH98LlS5XwAN6Ie9n/65/6eU7Et6q6mW sCKuwytpF9YBhxCQ8bjwF1MFYnAR8JLDZpgdsLdQdS0KYkSphHVAFhRMtLVrPygRA/AKQr58y Bfjfw+XWhyFLTcMUftdwecoY4HgZxOuqh5EQcg== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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 Reviewed-by: Matthias Brugger --- drivers/gpio/gpio-mt7621.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-mt7621.c b/drivers/gpio/gpio-mt7621.c index 74401e0..79654fb 100644 --- a/drivers/gpio/gpio-mt7621.c +++ b/drivers/gpio/gpio-mt7621.c @@ -293,7 +293,6 @@ struct mtk { static int mediatek_gpio_probe(struct platform_device *pdev) { - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; struct mtk *mtk; @@ -304,7 +303,7 @@ struct mtk { if (!mtk) return -ENOMEM; - mtk->base = devm_ioremap_resource(dev, res); + mtk->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mtk->base)) return PTR_ERR(mtk->base); From patchwork Mon Mar 11 18:55:00 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: 10848095 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 538DB1669 for ; Mon, 11 Mar 2019 18:58:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C6F12929A for ; Mon, 11 Mar 2019 18:58:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FFAC292A9; Mon, 11 Mar 2019 18:58:31 +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 D734B2929A for ; Mon, 11 Mar 2019 18:58:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728405AbfCKS6Y (ORCPT ); Mon, 11 Mar 2019 14:58:24 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:45267 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728336AbfCKSz7 (ORCPT ); Mon, 11 Mar 2019 14:55:59 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MK3mS-1hLcep2SSc-00LS08; Mon, 11 Mar 2019 19:55:41 +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 21/42] drivers: gpio: mvebu: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:00 +0100 Message-Id: <1552330521-4276-21-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:SGm2ZbECA44L33KcX8rBO9k7hiFzz8m04hhXgYnyrBzPpIrUgVs 6HV059efC+XOYPWqi8+NbSgPVq1aMCwTylqQ6IT+r2Wx1Zc0uZvcWcZylzjq7wX7vJjGiVI qgPN/qGWc6p2nfUvs9PatfcQYoNWSb9VnUqq7G75xVWuxuand8WaNLkAIMZ805vrG19iWuN FCDwcKUXaglHZutXAadrQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:lji/lNLv2Gs=:vckOvkN1jcUVfj09yUZeGD 2uKHJlWbKpdOQiQKafRMGbHjuMyUqdbk5R7eUCTW4t+TU8MksM+gdX1RtJnGpitb5wCavp8gw eGa9vauVj/0mD0R8epMag1+wFPwgfR6IU9m1edUahpUJ6sJMDUgDoD3/uMpGj0P7qSTmJHRvj bROD1crbndL8T/5RnkNwpq7mCRO/E+2uFdQhRN44bOYvLEK9/ZozGr+LtdhCK8sidVOQsag9a dyzr94RqQO7JuHQvgEJXdib1e7QJVAHs8ACEYEeKvavdzGA3VlJRHp3YgDOEe40xd5neS1osC rhHqKDxBlSB7ta3zsBPjYa8K0PbUgzP/kcApXb3hR23w/AjCvIPJT0xf33eU82VgQDLaQnv6B S+Pb/+/3Uzjt8K03lNX1NrVUGGmDmjtin7+1Bp0C/tJe2Iral/ys3NJlRBEHzHExxVrna8AoO StEOIlIfGnn8TdTRmpcC4nQ2KvwmJeMa+u0AT3DW4xlFotp3vR6suLdRZcNTIc58vuM7A+3RV WzsN5Lv2CIv9ZfGYyb5BmPtSUGuOh1onCJMz07EkK7v5LyC0fxfQxgleuY9rcf/T4bDD6d0yV LS8xiMDu5eL4qXBlrhnHup8gqMMnaoSoKZP6X7QtCJzuMypOVAMtOw8Cu7xlPv8RilLEN3Gph 3Gvv6hbHP8F2uwXQWEVWaB7rQjNkdpZ3gDEoflb1Ls3A180Tjo7hN1066kexSAAOvoxomHlHd rD3aAGSa7i4jxyYXg/T9JtkqCsfS21Q2fr8g9g== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-mvebu.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index f97ed32..059094a 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -1038,11 +1038,9 @@ static int mvebu_gpio_resume(struct platform_device *pdev) static int mvebu_gpio_probe_raw(struct platform_device *pdev, struct mvebu_gpio_chip *mvchip) { - struct resource *res; void __iomem *base; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); @@ -1062,8 +1060,7 @@ static int mvebu_gpio_probe_raw(struct platform_device *pdev, * per-CPU registers */ if (mvchip->soc_variant == MVEBU_GPIO_SOC_VARIANT_ARMADAXP) { - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Mon Mar 11 18:55:01 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: 10848103 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 135A014DE for ; Mon, 11 Mar 2019 18:58:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F12F0292A0 for ; Mon, 11 Mar 2019 18:58:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4A69292B0; Mon, 11 Mar 2019 18:58:55 +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 986CF292AE for ; Mon, 11 Mar 2019 18:58:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728538AbfCKS6c (ORCPT ); Mon, 11 Mar 2019 14:58:32 -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-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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-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); From patchwork Mon Mar 11 18:55:02 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: 10848091 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 E23AC14DE for ; Mon, 11 Mar 2019 18:58:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA2CC292A0 for ; Mon, 11 Mar 2019 18:58:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD5BB292A8; Mon, 11 Mar 2019 18:58:21 +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 699712929A for ; Mon, 11 Mar 2019 18:58:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728274AbfCKS6M (ORCPT ); Mon, 11 Mar 2019 14:58:12 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:36483 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728342AbfCKS4A (ORCPT ); Mon, 11 Mar 2019 14:56:00 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MXYAj-1hZ4uu0g3T-00YyfJ; Mon, 11 Mar 2019 19:55:43 +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 23/42] drivers: gpio: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:02 +0100 Message-Id: <1552330521-4276-23-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:FaTYPPPBKVwpl1KxMJTWoMfkz00Phi7ejKbzHEvqNYo5P4wpdaw vf1/WxhAn89NlVXGVQ2qO8EyFFHCoZ5rg41A3mMl/hztqbDBsj3wZanpH1gj13hzifAKnkH B0j2znYEk340nJ8EnORDyWlBIOfrAzB1yoCpBgD8Ca4b0q/j3819ofGzG7EDqtofZz1V/OH 3b4Gdxycxg/AMXKHz/iNA== X-UI-Out-Filterresults: notjunk:1;V03:K0:CSXdmVgOZuc=:BVJFBTRbrZG1F26vArh1no oief7n8RLS435IaI8xZBw474Y5dVjF40SzIwFYmH/IHFibfdfNCd5g1pxtWGq2D3CXEZWJHHc /Mew0hzvrSBQu3q8OUjSStoXX2MxvehwbD/MN+ME6YhqX4EFJxPqWMyt+jsd2pa9K6U8Rw5Nr D5LKiooBR1stVgARnsXSOO4HjY+mYpgu1BGcWcJJXiqheuUsFBkhEJg8BcmnLik9gEJrJS6qQ K+MBJ3IuBoVv3Q+CYdBG0J5/vWkjUmzpYMeFAtE/iN2Y8FNClufqnOOGLRvm1ajXBZAIwjZs9 lGLWX6NPFzJhw0kmsxx0HsU9iaRpRTctMjKu8pa0iIHIcTHH8OusF72KKxaqFy4lRs0+7cFyj MhWvd/vUDu8ko0od8sPan9pzj6gLDtQeBCMNq2zeL/YBzu6iydyU2gizxR3Nqsv2jcri3reUd MSMfIG54k7/BzEJ4PEsilhYV5vvqrEl4ErDB9tbc5iMizuxDYJrJig2Jv9b8FU5y7zZUxjV3X kx8ji9j49+bDFK1aEA7kBLt4kMAV4nT77Wj3mL8dmnX8PJl3gnxfieCfzJwaTlVjR+RNjqwKj ZG5qDnYz4W1/YVV7g3m/3Dk77o+IQDYcuxSS57y8294FhQ6FG95/5y4twVoZrzgbcbyQcA2O0 UJ1bdGcPoE9diwLzTNB1aom7g0k3lX14DsfiM8Q08DhYG7BuFJ9vc74r02I/FKILtfpQYhHw/ 7Fzb+jWD94MgFpuxiFkZJyrJ05AoGYiS8OcLAw== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-octeon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-octeon.c b/drivers/gpio/gpio-octeon.c index 1b19c88..afb0e8a 100644 --- a/drivers/gpio/gpio-octeon.c +++ b/drivers/gpio/gpio-octeon.c @@ -82,7 +82,6 @@ static int octeon_gpio_probe(struct platform_device *pdev) { struct octeon_gpio *gpio; struct gpio_chip *chip; - struct resource *res_mem; void __iomem *reg_base; int err = 0; @@ -91,8 +90,7 @@ static int octeon_gpio_probe(struct platform_device *pdev) return -ENOMEM; chip = &gpio->chip; - res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg_base = devm_ioremap_resource(&pdev->dev, res_mem); + reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg_base)) return PTR_ERR(reg_base); From patchwork Mon Mar 11 18:55:03 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: 10848089 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 6E6721823 for ; Mon, 11 Mar 2019 18:58:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B9752929A for ; Mon, 11 Mar 2019 18:58:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FB4E292A9; Mon, 11 Mar 2019 18:58:13 +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=unavailable 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 015442929A for ; Mon, 11 Mar 2019 18:58:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727424AbfCKS6L (ORCPT ); Mon, 11 Mar 2019 14:58:11 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:38471 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728344AbfCKS4A (ORCPT ); Mon, 11 Mar 2019 14:56:00 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MFL4B-1hJ4Cc40M5-00Fncd; Mon, 11 Mar 2019 19:55:44 +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 24/42] drivers: gpio: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:03 +0100 Message-Id: <1552330521-4276-24-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:TVkl97ouCD1e5W7IZWyHVMepLQL2TZ4C+8hLq+3idw90AiUAKM2 tCZJoP9CKGTBTfKhxhLwv+TDiM1dyuv75r1wztoytt+8A+QNzNWhGHNPGo2qLUOSQlLKLS7 lwF/1P5ig5yLjKTK11Y5O8A70hDUS9MHRMDehzxgP8Qu3PepO8VQgfLhcjYCwqo27GSHBon r+Smrm1XTcPNDhhA0i3Vg== X-UI-Out-Filterresults: notjunk:1;V03:K0:mj9DAC+H0kk=:jHdAin9PqtChtVxyUsoP0M FQFayoY01LhYyBt7O4PCgLkcF9FLgGZ5WVPGQIEfki6Sc/pb46ysCPLtB4hkzjrZ/T8cBr5Wp mT0fLCaUnae21M/KZzHyi6ier2TyNg3/vkk4nAScZ2S2Nsn4n6svpV4KNO10cvg+7Tnu5Fy7K pjnYf6oW/rNjE8Jp4nPxCA3baPEsFcxZzKaqbwe2XxIy2W43+/Q5P5FXK7wMMtKGGyEQ18hiV Sj5EdKnNTN+IXVymx7h6ACq3vI7VQQJIPXiRt7udPxb3YTDbzZH1kJBwbD+55qlfgbSBzIL1t Lm/0YXszzHXMovE8Ua1d9odQVYfRXDoPovLKdcruTsTAe9HzmjIWhJgpPXEH7uSNuDe2a+lNE f2L6tqW4ocHf8pylSTl6zCbZ+Wtl8dcE6UdY/NMfs0aMIi9CXEoE3sXi+hcRUlh8ZhelXIhgG ulCRRNEEHzGS5iHFSDLz/iRbDo5FMAk/RQ6QLGyQA7mwqCLtsHGa+4kAihu+BscMT8wELgEYp Mta2PaXKFlovRJcg4zZnkZPj5QfdN4I9u4eNfDyJOa1a6eFCGDOWwyuMqPLr0Zlo1Z18jTU1M I/lygBTtfVL/qbiR9F7tW8wxoCSLYA+/42dp/Ys6Y7ENH6xoVn1u/wHm9CAclE+kpQbE4o3LK p9qCxpSudFfVZwUueM5wIzYAU5VZ+C1gWkXsQAtb+N+sQUErAcCPYsf0aKEILxhQBti+hrf3O Kas7bCGW6oBIOAHB3xHTsQbZbbbyWzsuLGiXzg== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-omap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 7f33024..ce6e67a 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1289,7 +1289,6 @@ static int omap_gpio_probe(struct platform_device *pdev) struct device_node *node = dev->of_node; const struct of_device_id *match; const struct omap_gpio_platform_data *pdata; - struct resource *res; struct gpio_bank *bank; struct irq_chip *irqc; int ret; @@ -1375,8 +1374,7 @@ static int omap_gpio_probe(struct platform_device *pdev) raw_spin_lock_init(&bank->wa_lock); /* Static mapping, never released */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - bank->base = devm_ioremap_resource(dev, res); + bank->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(bank->base)) { return PTR_ERR(bank->base); } From patchwork Mon Mar 11 18:55:04 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: 10848067 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 37F7F1669 for ; Mon, 11 Mar 2019 18:57:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22A56292A0 for ; Mon, 11 Mar 2019 18:57:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 158D9292A9; Mon, 11 Mar 2019 18:57:46 +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 A4488292A0 for ; Mon, 11 Mar 2019 18:57:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728348AbfCKS5d (ORCPT ); Mon, 11 Mar 2019 14:57:33 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:33805 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728377AbfCKS4E (ORCPT ); Mon, 11 Mar 2019 14:56:04 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N2VGj-1gvKJz3OF5-013tZZ; Mon, 11 Mar 2019 19:55:44 +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 25/42] drivers: gpio: pxa: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:04 +0100 Message-Id: <1552330521-4276-25-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:dpXDL7pyvZOBfnJSyM3yHMQtTGOjibUjfyZJaO5v4f+pFvC2ygA PxKs6EF7qrHTskOsmprUrUJfO9zIcvZ7bBg0dmz/BS0vWp1afQ6W6JBA6I6tfRa9TgQrRRb TUFRBCz0R7f1eCZf2Q+ozn54AxO/lPiPvwkhl/F/qFTzjAtX/wJ+2pIQmPLbtp7f8+Bn9E+ c0ad1ASELAGMdzwTskzIQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:3QD6+ydyXP8=:vhH6Zf71LWU0zmYJJ+3pi4 GVA1Dyb1rXVJfkXJ9pt2EJRBUnXERfHUOV79HrtA383lIoa74JQMFAbkWHwmYHJGrNHVsKglw GS1ObS2TDfM4u6T0JBe2imaxESOQI0z3wzWe9Tss6UraXWWIr4JuIxXS9cpmBKCISFt8jpz/B cUsXDNd4PdzPiXnHD261Tefbz2kX2iQc1KruZ7FB0fTTFYElThgNNJsZGf9IgdHmGxLdjiQWQ d/NPR3lLW4KI8jg2PztKj7SDEu3RZxne8sm1KAyCImWdIdcXrh71rdx/3YJiMtbgRWGqRrxg+ MHfcvVHtCTae75fmmdDF2bC5S9DjLjElkgDbfX4EwpxCqJGZ+1y70tMxzDlSbnEzRuw6Zp1Pm o2hQwBXGgzPnOz7+HfLjj7npMXYFoFMDtaNKXBeFy1owkNBBHsbUQB7tmBCwcLAYvjwPgKzKH DAF8XT3NmGZgVRlTEmjfEN+mhnjaXKtOzi7FUCY9XwaXfZXpA5rM/sX5lpnUPdjE6C/l5ScNT cX2V+/mfiVK+XwTzuxl20KJMeKZi6BXXJ+1AEbJNermORypmi2YHScU1OzO5eNh4GzhJoy78y ryctHpgajPc01igLsWk7/Cp/UMw23Lw/tkcbzPnfzZx5Qwh32G5GXG6vkQAjlytd8WWinlAGh Ly5L33+NMM3fEsO7GiAVWvMNGUy41+aev/fEpSRF8DS/bW8C1K/P59pjNzNTNQFZA9k0rY4D+ 5PtDS4dlmxNeoBRSQDICIzWtyCeL14lQL1Mk6A== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-pxa.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index bcc6be4..dd47960 100644 --- a/drivers/gpio/gpio-pxa.c +++ b/drivers/gpio/gpio-pxa.c @@ -622,7 +622,6 @@ static int pxa_gpio_probe(struct platform_device *pdev) { struct pxa_gpio_chip *pchip; struct pxa_gpio_bank *c; - struct resource *res; struct clk *clk; struct pxa_gpio_platform_data *info; void __iomem *gpio_reg_base; @@ -665,11 +664,8 @@ static int pxa_gpio_probe(struct platform_device *pdev) pchip->irq0 = irq0; pchip->irq1 = irq1; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -EINVAL; - gpio_reg_base = devm_ioremap(&pdev->dev, res->start, - resource_size(res)); + + gpio_reg_base = devm_platform_ioremap_resource(pdev, 0); if (!gpio_reg_base) return -EINVAL; From patchwork Mon Mar 11 18:55:05 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: 10848085 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 03DED1823 for ; Mon, 11 Mar 2019 18:58:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E63CA2929A for ; Mon, 11 Mar 2019 18:58:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9E49292A8; Mon, 11 Mar 2019 18:58:08 +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=unavailable 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 90BC32929A for ; Mon, 11 Mar 2019 18:58:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728371AbfCKS4C (ORCPT ); Mon, 11 Mar 2019 14:56:02 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:58025 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728351AbfCKS4B (ORCPT ); Mon, 11 Mar 2019 14:56:01 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MNcYX-1hRPx42ZvH-00P325; Mon, 11 Mar 2019 19:55:45 +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 26/42] drivers: gpio: rcar: pendantic formatting Date: Mon, 11 Mar 2019 19:55:05 +0100 Message-Id: <1552330521-4276-26-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:WZUSasT9svg+DRGMBLjdJIsxvTDhtPEmsBIQ6GBWeBChWb6ydQi emACcz5b29DWaX/3Hzr/ZozQnf0NNjNjV9fNZOtqteVyu8pGkMBG1NYgI8y4O+QxeeBObg3 19JJ8H3QCdCzD3DDfpJZa3nL429oSdIsokn5iM5FLBW8r2PhXGOTSvDEJx5ok3Q7IzWPl2R EF5pmv8HVtwITWu98GhEQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:DS3RSw9sMLk=:UA0yQf750NLf3ZGP8ZJUkV 8R3k7YjRG8sqobJCVrPITaMIapG0vUnjnqjVZ4MyoKV8mIQGnxmdpm377Qo1DnIujv+8jEFxr rfGj8nqKH04idlZoYanYOkCNSelZfo5AdAzKWW8+f610hH9pBLUfsQ+n2wWkjiAV5WHIAI4/P AFf9ihu7GLOc+KPQXkhlIrnEX1SrzvkZhMFUbMdiQeDZcJ1P9+5PKArvq64+j8k8BXVBOF/7f cHyf6k4VTEkGrQzlOEzf6pzBA9PMluptZDGY0kil4FBY9y4TPyjuRshVxHVrBjWpZVxaWEy07 TCk9+tqauCXqMMtADFvrvJpW1WEhsBUaFSFyQrqziiLfw27b5slEqHDS4FlpAL/vZ/swRDwZZ EzXBLc8hxkHAD24Gvrt66xVVqXMjSFeaKDVw7spcSFEcsF/VR+A7mVLHIVXom3LCQhaKaTA3w d8TkhKYtKsUnEHmFp/6QdNSCgSFZ8ozBVw3dGanYii3ihfa7yAfJfbc8c+2yZcZF1wRd2+vBO wStcgOoh+gQXiYM675+6cYvMZHqUWQDsTGfC4U9HiGHsMn25ncs5mOEFBZOoQI43geGiuiY3z QtGTrxJSuaFB0eUkt7n6VJN3SdyKATFMUBPVWN5l0sCb9HcOKeD4RNv9EBiFphCrE3vuByMIZ B7BGvu72S6abQ/kJrUUsLTv1qHsvMUlcK7nfRrl3tkRQD/ihdpK7MgQvXYu9vd419laea0dFJ 9SYPE+uUekiOQWNUvcjnw1iF32m80WORfilJUg== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP a tab sneaked in, where it shouldn't be. Signed-off-by: Enrico Weigelt, metux IT consult Reviewed-by: Geert Uytterhoeven --- drivers/gpio/gpio-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 500a359..df4419e 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -490,7 +490,7 @@ static int gpio_rcar_probe(struct platform_device *pdev) irq_chip->irq_unmask = gpio_rcar_irq_enable; irq_chip->irq_set_type = gpio_rcar_irq_set_type; irq_chip->irq_set_wake = gpio_rcar_irq_set_wake; - irq_chip->flags = IRQCHIP_SET_TYPE_MASKED | IRQCHIP_MASK_ON_SUSPEND; + irq_chip->flags = IRQCHIP_SET_TYPE_MASKED | IRQCHIP_MASK_ON_SUSPEND; ret = gpiochip_add_data(gpio_chip, p); if (ret) { From patchwork Mon Mar 11 18:55:06 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: 10848079 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 AD26314DE for ; Mon, 11 Mar 2019 18:58:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93D90292A0 for ; Mon, 11 Mar 2019 18:58:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88488292A9; Mon, 11 Mar 2019 18:58:06 +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 329222929A for ; Mon, 11 Mar 2019 18:58:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728383AbfCKS57 (ORCPT ); Mon, 11 Mar 2019 14:57:59 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:35997 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728375AbfCKS4E (ORCPT ); Mon, 11 Mar 2019 14:56:04 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1McHQA-1gVAje1jzQ-00chda; Mon, 11 Mar 2019 19:55:46 +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 27/42] drivers: gpio: rcar: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:06 +0100 Message-Id: <1552330521-4276-27-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:YhOiBtIVmpqN0tX8N4E3k87N7AkekEIKSp7nDfPJrrbzzTUeGzC 099kEj0F6JTmyrTSQZOfQkPdwOJX+k8c6sk7QzppOt6tdzWP1ds+c4djDjITKSPbnF3ZLwi i0ZUuCMe9kq4PnT3UpXKImvUyUslgg8Kp4eYPQRN6+8PkfmYu+MYZztDui/5VMSa17sUaRN E75CYytYAFcCFtKXne5Ew== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ypaxc9K2jiA=:qV82M3koWIenNG98cN1zMQ V6LUAgJUb9bb+kNzeAJ20U752PzKLviuv8oP9+wH26Jc/GLl7jND6W/UbaTejeyz0IbWsT47P 5Fg6H1UAW3FKZiWHyC/LiEkXX1MBlaAe6D7nkUN0hrlG1s5nPAy5JZScrM61Vg0HEXJggtFHS q6C6Ph4RzLAQ8TaQrnxsJ6Gl/99cPqJNcJtMiy9c+6ns5E7k35Tv+wlCO7iHqphVcK47O/Um5 jvZqTgWIW7TAprgRJPS4ec/jgjOgOVFKGj+XT53/w/QwqtCnXal9WoNcmvGYQRGID6cYbWwbb xNDHSaam377j3Vp4VkEiqPDA0e4+BAYNg+CAlHrb+5VPuL16g1tUl/iuLaqZH3Zee7l+gd/Zf uLlGBGmoDnHcgk6JhYvHApd3GdW5Jv+NHvqVqlZJlni2mjyCZlV37jjhLklIahpQf6CrOcqeM w/Nt1EJyj247uMgXEDiqBP6YnX4QIyvJ1O66Oy0dsvdTX9DbejegACsm7k1BE/+ztehHgrHM0 /fHfsfTLHirY956OUwMs1mmX0VlkGkWkGMrmwMDLIx9EdGox01OXQUPnQbVguATHh69oWulS7 2bfOGHTeUh9QcCpLO0KtN3tfIQKoIJMrTFLSDn+axIA7SSKw0f2wC68AYdq/Z0kWqelx3KBwR 0pEIXDFtGnvy6wRF6U187ItpJzIHPEdJDQN+Q4Bgpmg21gZfjW4lBRslkvg5lwz9xcQGCAEhu 9fNnwXirB5LmkXk5d/ef6iqBi7mdFxOtHlt0Iw== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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 Reviewed-by: Geert Uytterhoeven --- drivers/gpio/gpio-rcar.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index df4419e..187984d 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -430,7 +430,7 @@ static int gpio_rcar_parse_dt(struct gpio_rcar_priv *p, unsigned int *npins) static int gpio_rcar_probe(struct platform_device *pdev) { struct gpio_rcar_priv *p; - struct resource *io, *irq; + struct resource *irq; struct gpio_chip *gpio_chip; struct irq_chip *irq_chip; struct device *dev = &pdev->dev; @@ -461,8 +461,7 @@ static int gpio_rcar_probe(struct platform_device *pdev) goto err0; } - io = platform_get_resource(pdev, IORESOURCE_MEM, 0); - p->base = devm_ioremap_resource(dev, io); + p->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(p->base)) { ret = PTR_ERR(p->base); goto err0; From patchwork Mon Mar 11 18:55:07 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: 10848073 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 666761669 for ; Mon, 11 Mar 2019 18:57:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F5E02929A for ; Mon, 11 Mar 2019 18:57:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41E6D292A8; Mon, 11 Mar 2019 18:57:58 +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 DAE0B2929A for ; Mon, 11 Mar 2019 18:57:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728445AbfCKS5r (ORCPT ); Mon, 11 Mar 2019 14:57:47 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:57531 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728376AbfCKS4E (ORCPT ); Mon, 11 Mar 2019 14:56:04 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N0nOF-1gpL6s0x3l-00wjcp; Mon, 11 Mar 2019 19:55:47 +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 28/42] drivers: gpio: spear-spics: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:07 +0100 Message-Id: <1552330521-4276-28-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:nnAv8tSDTCc6037wuL7sOL+nRE4QV4yOkf71WBFVHNK47bLHkR4 XCH4UUSbtIDIinVbITbxPXaqBH6G6BvLewGbKnSuOpXsOGu7rc2L0KWeDX1S1+1YzdDoWBu sPBYYBh9+kLxOIxebXrxI2fXHL+RUMVlMYrYOb3L6ZFi0Jq6k6mJ90mSc/XbCCX2xI5dhdC MHK1TcggSoyv6zhGWU0gA== X-UI-Out-Filterresults: notjunk:1;V03:K0:ssrqC31gRc8=:2Jd7QaSBR0y52ROoEpLu+1 yR922hGWwzywZFB2bOPuvDNT4lvy7yszUB8DducxPtWpG8wZ3cr3zbCUxasyO4OI1j8f1Np31 n1wSa0B51kfnlOoU8ZK4LPYGmLVB3er3FRsS+zsSvrdEs8q0zAyd5XRQrChIiwC3BCmZArFuR dd/gy6C5yNl2YJ8b4wFEgbbZLw9OxxJBwV+PSifd0KE8uWs0bbMCQ55WAseb+0yoKnCUKU+9S /AHuE4d6xTa3dXZ9go6ZGp00Q+E1JIySHz8zXfqh4XVaVhtwTYRoeEDbV+C28unNETp8c34RQ vVhgcRUyESH9+SJDvLuEHihe82NaAGFwFQ48ty/GfX11KDEjmQz1EqMX7WlbwwjkLsBxYYg1F +FgCPsFauOj93QFZZYW4+rnlWU0juOnKykXT8DAtasRNVeQpUIyhdIEO5y3utph2ISeQpJnwI IpyYx+cLioAWTGP0LxqebS+bGvuBG31Jg1IihRiooMvIKXMK17b8lSig7KXTtp93LU3JmqIgo XA9EYVNN+ZhJ503J9KITN0nQtW3UJquxbohz7VcJCkzxdq69aODjY6pxEaO6PTrvJJhbYnwd+ FoInsUoWSqoL3V5d/Vv8FZKesWhgTgvAHyRwGkkaL3TFzR3ewD6+PWDT2xqUcJUH70psheoCG 9rhWe06VRHTrAXbepb8jmdPXXWrcj5cyEZtdIUSybw0z8i4PUL2rJhAM00poNeHiM2MAbaPl7 +eXxEnufxz91zZC/FmaPrHj3reVFPKtM7DiGaQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-spear-spics.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-spear-spics.c b/drivers/gpio/gpio-spear-spics.c index ee3039f..6eca531 100644 --- a/drivers/gpio/gpio-spear-spics.c +++ b/drivers/gpio/gpio-spear-spics.c @@ -122,15 +122,13 @@ static int spics_gpio_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; struct spear_spics *spics; - struct resource *res; int ret; spics = devm_kzalloc(&pdev->dev, sizeof(*spics), GFP_KERNEL); if (!spics) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - spics->base = devm_ioremap_resource(&pdev->dev, res); + spics->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(spics->base)) return PTR_ERR(spics->base); From patchwork Mon Mar 11 18:55:08 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: 10848065 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 8E17214DE for ; Mon, 11 Mar 2019 18:57:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BD06292A0 for ; Mon, 11 Mar 2019 18:57:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 702A32929A; Mon, 11 Mar 2019 18:57:34 +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=unavailable 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 2DB26292A0 for ; Mon, 11 Mar 2019 18:57:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727469AbfCKS5d (ORCPT ); Mon, 11 Mar 2019 14:57:33 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:50127 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728385AbfCKS4E (ORCPT ); Mon, 11 Mar 2019 14:56:04 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1ML9i0-1hKXGY0APC-00IADU; Mon, 11 Mar 2019 19:55:48 +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 29/42] drivers: gpio: sprd: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:08 +0100 Message-Id: <1552330521-4276-29-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:jIepoEF32Vhg1X68EZZoNEc5g0QVI+9VwUKDeGu6UjkyRGqYNJW 4pEoBkT2nILhBBtzpTIFsU9kq2ep+TF/B9SxfzJ+gQ5A4RgQULbjKyy1jAeDc+mYNQxZgP7 gU12WzBldGBXx4sXeOhZIi5ayIu7n9yW59/oALt97Hytc2il/teHCk85p+GhB9HZGp++lsa A12eI3GJKfl3WSnqxgkMg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Cq+q8ILWueQ=:Jp4DNGDx0aVThHxxX5/GZY 5cl2aIBzvCAsnfBcgN+kS5rg8xyRjJyUjfB6+sBJw96fq5laG/KU70Q7c+5H6ydbbF1rfWd/S BSYc1G8Tx1cB5182Gimz+CUtjqMQf5YKnkXgSoblKc937FzojRMndHZd7YiKxTWY/GxNRm+2m iMypLkcSukHqlEjD5Y93tsRL4AF1yrMVlXiVlvmJTpv0m094CWy33r0sEJrI/gbmKennSsj9q S97V25qcuAnb/pefM9gfKWpwdfs2JbeER6hHPfkj1AdrxzqSbAQefukNNKnHFPK5AxFVUvjGo wKb1CxiG9DAe6XveI2vlCoVJC93vPrQjZCkG8bsEZZSx1dDxTM8UHScbKLF66GHej1ZySEw+q ScBA437R2wRUcdU8KK7IvlgOs3pKbmJJ2CG5GA0tWDiBkOjNEnetCjUeKu14oaF2u7I+fODZH +bT50qaUJzXnBKIt+U1rYc/17X0hLRSRCvqf82v2f0PssikI7m2L0cPTA6E6bsTqlQAtT483S 3N15cDBqReKizADsFHwq0oSm/K0o2ub9Ju+iXNb/X0jt5Vtxw5IMCPmotXAFadfacPxV5XJBL vhqDaGJutlKYJ7xb+qEidW9lyoOb0GxYlIf43vfX2icckzbrjYcQb+n6S8lvH3jJIlt4+iplc NtIedg9Cfc3GaaG0vEZp7MHB4xANAFBVKIa7P4VGFVWoyE1pYLNFIwuEE8R+7P9/7BmkhCFU5 R2DPl3B+koCuw4WjUCtuI2aYGWq3Ww4VM+XvIQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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 Reviewed-by: Baolin Wang --- drivers/gpio/gpio-sprd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-sprd.c b/drivers/gpio/gpio-sprd.c index 55072d2..f5c8b3a 100644 --- a/drivers/gpio/gpio-sprd.c +++ b/drivers/gpio/gpio-sprd.c @@ -219,7 +219,6 @@ static int sprd_gpio_probe(struct platform_device *pdev) { struct gpio_irq_chip *irq; struct sprd_gpio *sprd_gpio; - struct resource *res; int ret; sprd_gpio = devm_kzalloc(&pdev->dev, sizeof(*sprd_gpio), GFP_KERNEL); @@ -232,8 +231,7 @@ static int sprd_gpio_probe(struct platform_device *pdev) return sprd_gpio->irq; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - sprd_gpio->base = devm_ioremap_resource(&pdev->dev, res); + sprd_gpio->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(sprd_gpio->base)) return PTR_ERR(sprd_gpio->base); From patchwork Mon Mar 11 18:55:09 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: 10848061 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 C80651669 for ; Mon, 11 Mar 2019 18:57:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B37D22929A for ; Mon, 11 Mar 2019 18:57:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7605292A8; Mon, 11 Mar 2019 18:57:33 +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=unavailable 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 62A8D2929A for ; Mon, 11 Mar 2019 18:57:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728395AbfCKS4E (ORCPT ); Mon, 11 Mar 2019 14:56:04 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:41749 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728380AbfCKS4E (ORCPT ); Mon, 11 Mar 2019 14:56:04 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MEF87-1hBM253V37-00AHql; Mon, 11 Mar 2019 19:55:48 +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 30/42] drivers: gpio: sta2x11: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:09 +0100 Message-Id: <1552330521-4276-30-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:LDHwn7aiSY3DM01M3mP3F+2VrDepwP8XINcvNOEBoGf8iFZCD51 2OFbylwjrSS0YmJCmXtun14lQtU7xHcS1o8rTd3CMO6wT/eUQUZml7JyDYOZ2u3wwQ3+/7q xAeOSXRF+r0g8ht5N3b5MNUUAAAKbi+clmsIGGnWQEOWhijbfoButnb+BPZrN7fwRkr8gqI kRwmTn2p8pSXREB0X/loQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:rMOXy8SLZmM=:OciIml2ix60N8uB4aaFfKB ffu400N6fwstVgeYYGOKnOtAqdHm8HXIenVYhNZkgF3+iA/Lg8kLEZTkXokXrELLvadAHqa+t QGJJ/wKYyWZnUy1/F3YBI9i721pxIB5wrgh47YU8KO3pnvisna1VAa2C1UgiGhsSr9AzrMMoV OQQVtB4MTkqvhgUnRdwe+FFcqoSYQh3rDsnuS0P31ceilKLfZo3x3zGAeo1G2B69ttSUAHxIU +N+g3o8eBHTwkwP7+NeZePlroopXDT//Oo7q3dkzvzYN7S+ivA8W4xZPmMFth0APN0zPJPaJ9 ZtH8ALIawPI/74mxT5n4GeaiQ8M3Jv42x4To1LBv1yG/+53tMxZKTL+agUFoU8PJnR7VZycfn HGn/ZH32eDaG5Z9957bNW6rs5yyh0JFQZ7MG6F3Zduw1HLCv/4c4oEUyytfYjBnkanLCynBK9 Ii5SZaE2ohQponjQuQ6dEniz5NjEXtnRs6IxYI478GnhxJiWvkuwhfJap1jfVjDPSLGFal3nL GbXObh8toKL324ZWK8qt3W0haMSSsHTdJlyQhFiCr6uAk+ItxXAuvKGU9/qrwHSgpS8OKVecO nWPh0mbdHCrUqBwYJ8SvTLSB0b6ByagJJiq++1JwYfhmueey2OYtI4i0E5+npAubLebjjxECE F6ADQCDLTQTh2iQjl0iVDZx9xPMk42L1nmWsTwOWpnF0Y3F+JBP+yjaRDTDZCjWdbxEQqwrGt oGCl03mdopzakMqYNpsCF7LtjkyGCRC2gNihZQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-sta2x11.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c index 2283c86..a51c310 100644 --- a/drivers/gpio/gpio-sta2x11.c +++ b/drivers/gpio/gpio-sta2x11.c @@ -360,7 +360,6 @@ static int gsta_probe(struct platform_device *dev) struct pci_dev *pdev; struct sta2x11_gpio_pdata *gpio_pdata; struct gsta_gpio *chip; - struct resource *res; pdev = *(struct pci_dev **)dev_get_platdata(&dev->dev); gpio_pdata = dev_get_platdata(&pdev->dev); @@ -369,13 +368,11 @@ static int gsta_probe(struct platform_device *dev) dev_err(&dev->dev, "no gpio config\n"); pr_debug("gpio config: %p\n", gpio_pdata); - res = platform_get_resource(dev, IORESOURCE_MEM, 0); - chip = devm_kzalloc(&dev->dev, sizeof(*chip), GFP_KERNEL); if (!chip) return -ENOMEM; chip->dev = &dev->dev; - chip->reg_base = devm_ioremap_resource(&dev->dev, res); + chip->reg_base = devm_platform_ioremap_resource(dev, 0); if (IS_ERR(chip->reg_base)) return PTR_ERR(chip->reg_base); From patchwork Mon Mar 11 18:55:10 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: 10848051 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 B28C91823 for ; Mon, 11 Mar 2019 18:57:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E3AE2929A for ; Mon, 11 Mar 2019 18:57:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92762292A8; Mon, 11 Mar 2019 18:57:21 +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 3BE7B2929A for ; Mon, 11 Mar 2019 18:57:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728521AbfCKS5U (ORCPT ); Mon, 11 Mar 2019 14:57:20 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:43941 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728388AbfCKS4F (ORCPT ); Mon, 11 Mar 2019 14:56:05 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MfqCF-1gay1U2fSz-00gIfX; Mon, 11 Mar 2019 19:55:49 +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 31/42] drivers: gpio: stp-xway: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:10 +0100 Message-Id: <1552330521-4276-31-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:CsvzZnm46WK4n9R0bYTcR5/FI2O7Ra/ineu3763wIZ1J5bgpoR6 mqji+OsGcgKaN0Ki0XQyHNxDqVJMkhbXkQpLFDIKxq9Cx7KrSvWLmQcIwOvg6ecI6CDvX+i DuFupJL2+6hTvDKtKnjkYfXxXGTLtkkIfdnUc0aS1j+ugJYZsFP9BwU27BpRtwAAM3Ko9Op TsMSIFnOcV2u4EfVNNPVQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:zYW9C9o+NHQ=:gdxSfDKYhOpiWSS/CocjVg UN2H+w2YoD9yKqCzSfpu3plMHDzoeTfnWEjoWxRkdUrCnU+Ytq44rcUQ47c/OVR/bAmSIVxCz Slz5RWE0C8ojwnDy+zxoekj5q7RcCevlF2LW6mAp0aJvCz+l4ST8ywk35fyZKayUQ0MGX7V4w EVs2A0SGjT0KSfTCo+YlsFzxKDbxiQ7oEUjf3/MrnOfJOTBr9i4H7oWYjCdcqt6pOlhI5LWRe XZLv8P8AdG2+mfyIjl41/HSU7l67WX2+/5coIVuKupjjFPjZQsq9CkZ53WdmfcnrkJCcXasOd guUaakgBOwXO/XjglHQId3+H1ep8yCW22d5wLWMt7VUvGTn/2opbnTig4Laj6C0EY3NMZsnRP J2bwzkyu2vtZLTyfJU2gggTNcWTB9zv1foZuuJIW/3iudwEl2kkrCJesDC17N/jiGV9qAB3eF E/SMFtP17JdFuuYE8DNn8XtQ0yj5S6fXx8RupyidjSWXsZZnT5XBtBpxvM8calxvbkIfqYenh DwsMe/Siew/fs+lfEK/uy3ys+TOcEZurS7HojK1WyMk4ltDdi4FzMweDytMDzKpya8L8oJ6d9 lBS1caJ0FUAMWq1icSCazxqctvvcK6Mjg3EgXvEfajl7Y0i06wEN6dGorFj/oOgYQ7hR5KoIa B5rQwdXMhhfSKAZEeINECEfwmEN+fnX7NdIufqXqsOVWcvMEfi7d2+Tqa/GvwkX19CXXQz9hs ZnGIZXJetPX6r8hLn2uksXMAJafvLFiiFBtkXQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-stp-xway.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-stp-xway.c b/drivers/gpio/gpio-stp-xway.c index 1997208..8a319d5 100644 --- a/drivers/gpio/gpio-stp-xway.c +++ b/drivers/gpio/gpio-stp-xway.c @@ -210,7 +210,6 @@ static int xway_stp_hw_init(struct xway_stp *chip) static int xway_stp_probe(struct platform_device *pdev) { - struct resource *res; u32 shadow, groups, dsl, phy; struct xway_stp *chip; struct clk *clk; @@ -220,8 +219,7 @@ static int xway_stp_probe(struct platform_device *pdev) if (!chip) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - chip->virt = devm_ioremap_resource(&pdev->dev, res); + chip->virt = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(chip->virt)) return PTR_ERR(chip->virt); From patchwork Mon Mar 11 18:55:11 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: 10848077 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 9998314DE for ; Mon, 11 Mar 2019 18:58:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 884352929A for ; Mon, 11 Mar 2019 18:58:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BE24292A8; Mon, 11 Mar 2019 18:58:00 +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=unavailable 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 221382929A for ; Mon, 11 Mar 2019 18:58:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728417AbfCKS5r (ORCPT ); Mon, 11 Mar 2019 14:57:47 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:53683 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728378AbfCKS4E (ORCPT ); Mon, 11 Mar 2019 14:56:04 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M9nAB-1h70S31pDh-005rzP; Mon, 11 Mar 2019 19:55:50 +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 32/42] drivers: gpio: tb10x: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:11 +0100 Message-Id: <1552330521-4276-32-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:/wgkM/HX0HEMgBvIMBFm2L67vzdkA8Xhh7uiv1GN4Uu2BkhHtGa uHsMy7cTxMg+FUiJF/mfTwL1X3sUgXp2pf8AcxIMW4XtN3TEjOv7PI/P7hW2+eyV5iRHsgi DANZCi6BsUcI1vzScifVv1TNs8BSUc/Ql2ghNzBJVbXgYWYllrIPD3uzYfLgJGBW+Fl8Ahc hnmGFsPuRVCQDWhSKjI1A== X-UI-Out-Filterresults: notjunk:1;V03:K0:Yg6qm3arTig=:w/UhXM4dsXt3gKXuVYrZzL mDSGMw3Q2iW1Pd0+E+Tx2TR7AjCZh3exfSYebtcFRP03DWG8/Gi+g151NU3RlBkho7xvk1M4w D28qAaj/T01kVFHgr8SN5dMSYrcklunqOtvhs1Dh9SWGNcxaraUJj8KEtsF/KVDnQGqbvf8Hi wo33ebib0nHp5HWhr3wFHPmswLT1qfSXXKd6OA78MTeoovtaLOSySwwgseVuusLCNYXyL3OV8 /v/408H48ithyIIT2+T+b50QBPsE9V5yW5hY+MTgsP+irvhuRR0bOZLMmUgH1lq67N3407+Cs b4yg+ysJmY+sbJqNHX1ow9lTw8InKpX3RRDxgySVaNplfCDGfGUYy8H4DpGVlbfNUyTYF00Jl 4I2BW1ay9XLKzgEi8NZdDgIbltJDMxxrzEiOdepqx5tAbNxHUyVAYqhdv7ClthicuCWRTd+bn nZdSHxGIuHmrxHUnFhFuSA1qz+OIRn5w8NJgMBxMzCp2XObCCCh/d+3mGDqahTm4JQcZ0yjLq wXtU26oEBgMU8V6pLOxpEPygOWp+VuSItXvHBWQDX8Z9ZlHhx6eYZ/zuhMar6OsOOx1wXvtci a12Dop3Il064WzBN/51qY0a6lyK0MlSGva5aC/ispSjhmHly+jCHh14alTb+etfFyNc35udrX XP6UoZr8bNyg31LSgZnSSC0cjBpgGS4X3O8Ddh8w8Hn5L63ZgZWqgvGE/o/FIctyFImiqxnAs R/CaUOuSPBR/hKI/fadDrJIdWJAIvAhKOcC2Tw== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-tb10x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c index d5e5d19..6bbac6c 100644 --- a/drivers/gpio/gpio-tb10x.c +++ b/drivers/gpio/gpio-tb10x.c @@ -120,7 +120,6 @@ static irqreturn_t tb10x_gpio_irq_cascade(int irq, void *data) static int tb10x_gpio_probe(struct platform_device *pdev) { struct tb10x_gpio *tb10x_gpio; - struct resource *mem; struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; int ret = -EBUSY; @@ -136,8 +135,7 @@ static int tb10x_gpio_probe(struct platform_device *pdev) if (tb10x_gpio == NULL) return -ENOMEM; - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - tb10x_gpio->base = devm_ioremap_resource(dev, mem); + tb10x_gpio->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(tb10x_gpio->base)) return PTR_ERR(tb10x_gpio->base); From patchwork Mon Mar 11 18:55:12 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: 10848047 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 1A2441823 for ; Mon, 11 Mar 2019 18:57:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 098422929A for ; Mon, 11 Mar 2019 18:57:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F16B6292A8; Mon, 11 Mar 2019 18:57:18 +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=unavailable 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 AE3602929A for ; Mon, 11 Mar 2019 18:57:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728477AbfCKS5N (ORCPT ); Mon, 11 Mar 2019 14:57:13 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:48105 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728406AbfCKS4H (ORCPT ); Mon, 11 Mar 2019 14:56:07 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MOzjW-1hQajr0wxg-00PJcA; Mon, 11 Mar 2019 19:55:51 +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 33/42] drivers: gpio: tegra: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:12 +0100 Message-Id: <1552330521-4276-33-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:AzJtMxIcpK5L9lDHlHkZc67QygWDWhG+SlVRwbIsXUDxSbetHPO rhSK9Bh/XY7yeCK86iiJm2oWB1qqeWyeOw7QdUW7AjpTEnnthd+KmujiBKNlrNrPitDjVKj bTtVzyj7yHvWkmySQ2c/IIIMPTswDMjLlGRRg5D0nYdP1C14af02PQRjvaFp9kqcfaImRn1 LBFve/K0+YQfkLHXpvXig== X-UI-Out-Filterresults: notjunk:1;V03:K0:c4pHt85+Owg=:/fi2spomNyje5e6mvNN8oW wnSwiRvUmGY3/dMFSQ4qAIVuuipAvYpgryZ0Q7Us3UaisUQg10w2jFECgrawR/M97SEUeaDvo ew9W5d6aAoOG1G7vPFIt0NxltrOxj0sHmkD6OOGbpocCRI7vIDv9DZdaNJiEXOY3nPAKdgbCZ yGLKaO0Iad5NvidDTGHegYEQvMzpaMwFZBMgVWQVZAnAh8dwvga+duAmw4fdexCO+Fw1HWiKD Oo0mGwE2ffs+EDxa1DzZJEi9N8lqUhxbVcMIUiZh7fz8IdnYvY4m6W9PJ8Nklt89yaPzxc/PS Y0FzegKm6BF5itQdtQaLylQYhBh3PzI0cKSBK+77nMPo/4kfYhy9KPq83yCZl4JwzHe5Ok3s9 i699//f6zzC9P4AMULys+y/AnqmLQJPimMlYGyl/7V/nq14NOx3wi6nTuxGtkDiLvxxrmfdFM B+/PBXBcY8rx/Jm4vzwFZRb/Uk7UAxHYTbJMyzd50JeB3qjy/Uex3s8FGG7iL4KG8cWnB97Hq nBLZTRW9W2jGMGqb96RtYMWjEAtlP7un7/25mus1+t/PABGqO6700w/f6Fb4e1f+8Fw8CTcwB kGO5yYUjOd5LgT+Su5pjpisJFrFLSi/ALUgWXzQDTY4Z7HTommlZHfPB3S4Y3J70HE6WqXk7Z IorIxY/T9LYsDOIE9/CN+bayrpj/e4sEBejjqPhPekDUfBDL2/Prt4cNryEe2PbLGlQEy2C+c Sgk2OaK3agNKLpUBDm+mIM0/bvT2wGjhJOl7qQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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 Acked-by: Thierry Reding --- drivers/gpio/gpio-tegra.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 1ececf2..6d9b690 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -569,7 +569,6 @@ static inline void tegra_gpio_debuginit(struct tegra_gpio_info *tgi) static int tegra_gpio_probe(struct platform_device *pdev) { struct tegra_gpio_info *tgi; - struct resource *res; struct tegra_gpio_bank *bank; unsigned int gpio, i, j; int ret; @@ -645,8 +644,7 @@ static int tegra_gpio_probe(struct platform_device *pdev) bank->tgi = tgi; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - tgi->regs = devm_ioremap_resource(&pdev->dev, res); + tgi->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(tgi->regs)) return PTR_ERR(tgi->regs); From patchwork Mon Mar 11 18:55:13 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: 10848039 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 08ED41823 for ; Mon, 11 Mar 2019 18:57:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB9E82929A for ; Mon, 11 Mar 2019 18:57:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFCBD292A8; Mon, 11 Mar 2019 18:57:10 +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=unavailable 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 9DA3D292A0 for ; Mon, 11 Mar 2019 18:57:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728422AbfCKS5D (ORCPT ); Mon, 11 Mar 2019 14:57:03 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:41457 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728367AbfCKS4J (ORCPT ); Mon, 11 Mar 2019 14:56:09 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MowbA-1ghnlu09lu-00qVPs; Mon, 11 Mar 2019 19:55:52 +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 34/42] drivers: gpio: timberdale: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:13 +0100 Message-Id: <1552330521-4276-34-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:QoZ9+Bdn0zvLNC9Ul5vk/lW9WVObrOgmx9XHGg7C6l741oHBY5l JpGeCdCLJSbGspSbLsmwu0klWidoukkWM0jLPacPwy3JC5j2r7qvF4yFKhMyOHTucUjvQ4P wSz1pEqNDZTQf4zliMzPirbz9hj1rddwpwrz++PuTx4dLfE9XsDcX7C59oJX9BTjk2kyqrQ qy9WCueExCKcH6yyzJDJg== X-UI-Out-Filterresults: notjunk:1;V03:K0:yr3BOJgbBdQ=:gSjSDRerZcy8sdvUDH3BGW GrXVTr1BDSA+MDb7pTHEwllzioDpqqe4tb5jWMyHL8zRop7oePHvMmQuQk+xBof7bNPb3b8Cd Ic4p1gt6RUzwHkqMOG+i3cCrIV5eDyAoFixDBOrWd9JNdBsb3OMr3UeKr7kCvhZM3VqVYPOjT hkUEueB/Al50cuj4UatLPc6gAzegRtB5AE0oTih0HZwW2uaG9rcBndWUDIZfHspc1c9XmNupx GrQZ9tBwbNHT6AWKcnO5jmTYVc7IJY3EUsRKJ7iQf/Egy0FTuxu/kiF83agAblA3ROjhB46CF ROY21gn8dHj3oKCRH2LW3vw2G6XHL/xcFZI1Yuc6D+LLGeO4iYWJ6NCAyVhhRdDt5m/W31NHR Aswdyfhy096y224/mLOawtOjTnchZIE3DnW9VaP0Lo3RFgb8wgZYqWOAbmb8Q3jJGj+5rZ19E Lg05IZYBD9ulS7tH6q1joXspMxt5vcptCqrPWKg8lLbLFN1vL7EPF+q5sAI31eHuu10ALST3M 9CZxphw8bpp1owCnZO7t+vinjD4j0gbEUr4eGLacisdgjgJq6nSHrXg6jBOnMCSsfBGQ8wfFP 9evgdZu1u2szISbFzoYgS3sQTcIvKnpj92mSiJhVoUjL933yKYHAhL3G91+PNUERzHx0/GxyB 52lv76iojaNoONQG+Nf+YGS1RZCxNlQx9mJF1wdUaYng1J0lS3X3O44JJKju+wIc75Ddm2bDL LfOYSkM9SztS1GxnDR7WtjcyGVLDz03YttqKCQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-timberdale.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-timberdale.c b/drivers/gpio/gpio-timberdale.c index 314e300..1c70e83 100644 --- a/drivers/gpio/gpio-timberdale.c +++ b/drivers/gpio/gpio-timberdale.c @@ -229,7 +229,6 @@ static int timbgpio_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct gpio_chip *gc; struct timbgpio *tgpio; - struct resource *iomem; struct timbgpio_platform_data *pdata = dev_get_platdata(&pdev->dev); int irq = platform_get_irq(pdev, 0); @@ -246,8 +245,7 @@ static int timbgpio_probe(struct platform_device *pdev) spin_lock_init(&tgpio->lock); - iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - tgpio->membase = devm_ioremap_resource(dev, iomem); + tgpio->membase = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(tgpio->membase)) return PTR_ERR(tgpio->membase); From patchwork Mon Mar 11 18:55:14 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: 10848057 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 DD5BE14DE for ; Mon, 11 Mar 2019 18:57:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC65C2929A for ; Mon, 11 Mar 2019 18:57:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFDFD292A8; Mon, 11 Mar 2019 18:57:31 +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=unavailable 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 7E1C02929A for ; Mon, 11 Mar 2019 18:57:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728406AbfCKS5U (ORCPT ); Mon, 11 Mar 2019 14:57:20 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:45853 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728389AbfCKS4F (ORCPT ); Mon, 11 Mar 2019 14:56:05 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MuUWi-1glCW23cHa-00rUy4; Mon, 11 Mar 2019 19:55:53 +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 35/42] drivers: gpio: ts4800: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:14 +0100 Message-Id: <1552330521-4276-35-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:ZLM0qTB4BbBAGFjOCu5dGMzkJwXWbu1LQzcdjtjvs/hDoHbW2Y/ AKskx/phDVN/mm/Uy6oZmPuKBgch57lgAoKeJvSA/xbGUXak+WUZENy/1sb4riKpxTnEMcz 33wtxslOv0V1AToQlvRvOpaNafzUEOBgLhDJbfqSE77XL8aO48CCcG4MZUI9gsEMXSJyz8X e/XuDb7OFKqKLauWQnhWA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ks12aLW2P8g=:26zFSIwCHWwy6UKT2aapED VWpkH8q2XBLueI2iW0aP8l4IccGWAAZtOCnbvRZ4HcVssBP6xoeGex8eqXXTpuHxETnibolcA dLOYsh2XJpFpVSk7EYgSGvNPPX/kSNwe8XwCiPNeFgVFYHdxT0hMm9OmVbn9TDxD3fuMlXngO ZrdZv90J+k48bHodaykfU654kKn7RP977srXASym+zX31blqhdKd0duG0JI99fnBqz9RIzYgs DHoqGmFPEhy76Vsuzo6HPccXdYsXEiYV6A8nd7c/mOBLvcYw3xz6eYKYYQnP3o3jm3eAMkvP5 uAc/WY311sk88bQ6Z9W+2uyQJkE7R9+wtPQWdFXUybTVpBpUdnEyH3fPquHQhNw8fdGT5n7u1 vsub6Ch9VOIo9vhRRGOCwJU6Ovluykdpkcd8OiZT081C+YKeGiHvEZlxkFQBxLDyNIq9yYrd9 UaFvG63WdAilReD238vroNSg6kNr3Tp7ZtHct8HNFdtvbJiheYZHIhJpGp0/Ope5aJqldkVdS 0ROKbE0m1I0hQbArQyRDcDbKFTWZbMdfUHhX6oMTXDiblFyv98SHRwH/b5IZM0LeXb6DIoxLj 6QKhVIwtYoR13DJdd4Gi7c7BkrN2vFSOhNSwhudWC5XtidnfxRsBs4xqkQGe+EvVxH+OOrr9V nW6B4qeo+3k4ECl+4OtEwoHMhNRxRihY0nPmooTlB1ESwVN6kK0Id5oRiTAe/xPt353zsmZd8 wLkJuAmNsK66Rr257Nyq9tOM7KpVbCB01XAc2Q== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-ts4800.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-ts4800.c b/drivers/gpio/gpio-ts4800.c index c2a80b4..8c0d82d 100644 --- a/drivers/gpio/gpio-ts4800.c +++ b/drivers/gpio/gpio-ts4800.c @@ -23,7 +23,6 @@ static int ts4800_gpio_probe(struct platform_device *pdev) { struct device_node *node; struct gpio_chip *chip; - struct resource *res; void __iomem *base_addr; int retval; u32 ngpios; @@ -32,8 +31,7 @@ static int ts4800_gpio_probe(struct platform_device *pdev) if (!chip) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base_addr = devm_ioremap_resource(&pdev->dev, res); + base_addr = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base_addr)) return PTR_ERR(base_addr); From patchwork Mon Mar 11 18:55:15 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: 10848041 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 AC1BC14DE for ; Mon, 11 Mar 2019 18:57:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 976722929A for ; Mon, 11 Mar 2019 18:57:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B9ED292A8; Mon, 11 Mar 2019 18:57:11 +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 419752929A for ; Mon, 11 Mar 2019 18:57:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728430AbfCKS4J (ORCPT ); Mon, 11 Mar 2019 14:56:09 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:54251 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728415AbfCKS4I (ORCPT ); Mon, 11 Mar 2019 14:56:08 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MyKYE-1grFzB2kc0-00yeMk; Mon, 11 Mar 2019 19:55:53 +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 36/42] drivers: gpio: uniphier: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:15 +0100 Message-Id: <1552330521-4276-36-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:Gd7zzEp1xO8auchj5+n7PPhBNUDPcj7chsxhBpBSRuzOEHXWE4o URkq4gPAYkhTVAoLZXHCnsXjSp3NphDuuiZHO8wXNrXP5jUkoUvQ4dUcSxjbyVAG49RGj8z oz47hhKVUKBOrt+nnThkwXGHusI/R6X/8nTNMCocxOCo9YGXYbd97B4OGKQu5GCa+Me3o/S frOetujcVSt+F1LDexWbg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Fshggu8wgmo=:oQh9pPPBJtdV8jRbvzOq6r Km+0flqOhr1ehqdYvfMYV+g3GiFKmnU1w18qqkA/6BSGAFBULtCey/FXW85OwHmqKclaW8+NZ RWfQcAHyz6l+fE7Z6rduBy7bR020NxUHDhSjGoGPumo3C7DYPfnLBCmmhxkKJM88Q0ADagfnO YesANAgvLZHElnUIQCfp7vPufQNuLRYK4qa/CSVOL0VEtrGbIIji8XOaVrTFwWzbd+yYLtnMi +oOFjNtnxl3V40xJOlvYCplCZ0OSBQgEOv3HSEvMcrPQAcBnrFQVLYsuuukoouVjhAfz4U/sl BFU6XCbO/X/HfVdairUJk7T8G9MiTohwwo11qkqkcrzv/WFjWnLc72WAFYTmz3bkNun3kajH0 hfW/RhFs1zk/yQ/Afmdxq7ost/EKR9OrnIpO60sNPBMzLwQhLgwJkAdX9LfNCoWxOGb/utwRk k2JpxCGTlOBovK32KLD9xfJ495BVELZT5Bk4xmYuxiZPeBZwu1mi4zYqUh4g47bX2KcGnT2O7 tQMj+RqepBJh/qsnTSkLKnwv0l6cj3K+T2UIUYyF75W0ee2v2rFhRBtPcyreb5rXgSZ/CRyTP rLLW5aqM6UOeyPUHIYDbiE/8rTxg774+lcmCncNEliAXRF0f4LJ6XGrUWCrnypbDkeaDJokE8 q0heuqAHbmEZ7vlQXXsZY6YOIerF1HqBlmEW3+JUPauss9LXpOe/mfDYw3QJhcAu+SIF8h9UR 3sS/4taHO+59fN4x96N8E+iXcNrnPB7aVOZCQA== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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 Acked-by: Masahiro Yamada --- drivers/gpio/gpio-uniphier.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-uniphier.c b/drivers/gpio/gpio-uniphier.c index 0f662b2..93cdcc4 100644 --- a/drivers/gpio/gpio-uniphier.c +++ b/drivers/gpio/gpio-uniphier.c @@ -346,7 +346,6 @@ static int uniphier_gpio_probe(struct platform_device *pdev) struct uniphier_gpio_priv *priv; struct gpio_chip *chip; struct irq_chip *irq_chip; - struct resource *regs; unsigned int nregs; u32 ngpios; int ret; @@ -370,8 +369,7 @@ static int uniphier_gpio_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->regs = devm_ioremap_resource(dev, regs); + priv->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->regs)) return PTR_ERR(priv->regs); From patchwork Mon Mar 11 18:55:16 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: 10848031 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 4DA0414DE for ; Mon, 11 Mar 2019 18:57:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36AD62929A for ; Mon, 11 Mar 2019 18:57:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28FED292AA; Mon, 11 Mar 2019 18:57:04 +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 B2A9C2929A for ; Mon, 11 Mar 2019 18:57:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727830AbfCKS45 (ORCPT ); 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-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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-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); From patchwork Mon Mar 11 18:55:17 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: 10848025 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 B157514DE for ; Mon, 11 Mar 2019 18:56:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A02C82929A for ; Mon, 11 Mar 2019 18:56:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9338C292A8; Mon, 11 Mar 2019 18:56:49 +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=unavailable 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 4746C2929A for ; Mon, 11 Mar 2019 18:56:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728449AbfCKS4L (ORCPT ); Mon, 11 Mar 2019 14:56:11 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:45311 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728428AbfCKS4K (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 1MwPfX-1gkvGg17Vl-00sJmV; Mon, 11 Mar 2019 19:55:55 +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 38/42] drivers: gpio: vr41xx: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:17 +0100 Message-Id: <1552330521-4276-38-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:DG9xd4w78nDQtbs+l6FzqbTkshUULjHcBsVfKq75l3XSAowmCl+ mlQm2OMp6vMjShMW8FxGRsgmxlLNV7YSgyk1K4+wcebz0/HyHdvHozvBVUmtDEVtRXatibE hosJNNS7B7UX7yj2wTj9tiNiD/xvwy/3vML5YI97UWgbC+1RJC7BoODvlzXbJIVsSQyQIAF TlzDfi9382kNnR86rltrQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:8GOfLAp7os4=:xeOyugLL9fjRyb0RFGDg08 z9uQ4GJpPS0Gzna8vF6guAw2cSOABaUVtU58nOSrUYO5ePmxpIwr33q9R2mC/GMz13myq/NN0 x0HbfF4BPBEGLt7teEnM2stEFSAkbg4bodThzGzdhxaDz2czVn5HTk97na7h4pfQQts78gIQQ yztIzxGaJQZd+JzlYuLE9vmGln/FkxDKF+a83AtgPDxCJdVe5eJY7Tnsw8O8oYXy6F/kI/F5H 4ecocinAQPy89zHqRoLYSgCS1cTdBHWcysKr8VBmSaR8diXHn+JaSK75G4W7v+Ot2NDkJfiiM Gewqid4AFzYfgTS4jJleaAwkALRvSxQIsBGmthrcADX/BFFFz6vWB4tLH7/nS+yLCXzy62z61 1aHuWpr8sD9pQRZW42xbg0P2oGY5f2BM9MUXEkR3Z9FRmV/lH0BI0lY8Z7bS1O/0mrSLyC+ev h7XN8tP6f8UnlzzXzKX0YNKvJ4fSMvdp02zRrt/+vNQCPyilE9mQ9IkFtucXcq0GT5DlBiqz5 3+FLK9JBu74ZKwlZxSbRZCCxo1TDAljXPgMdXZ5KDilfTMisc+8Fm5XrUaQfwoKuUQJZRzAIc Fr5TBkeCZNpNEGDHCpM8rR0npUmgEq6cRVoGRrEF5c/+Bh/Z+yrMXv24yIKE0z0QkRbrIsKS8 r4mRKcSBE7jJPQQuS6j1P9S9cRzRBRE21ZZJx56b18HvjSn3Lok7e/Ct7JxXZKBrrKnACoHsG Lbf9WyItsbUT/3fnRHk6M04G8633ADFg7fK9lQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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. this driver deserves a bit more cleanup, to get rid of the global variable giu_base, which makes it single-instance-only. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/gpio/gpio-vr41xx.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/gpio/gpio-vr41xx.c b/drivers/gpio/gpio-vr41xx.c index b13a49c..98cd715 100644 --- a/drivers/gpio/gpio-vr41xx.c +++ b/drivers/gpio/gpio-vr41xx.c @@ -467,10 +467,9 @@ static int vr41xx_gpio_to_irq(struct gpio_chip *chip, unsigned offset) static int giu_probe(struct platform_device *pdev) { - struct resource *res; unsigned int trigger, i, pin; struct irq_chip *chip; - int irq, ret; + int irq; switch (pdev->id) { case GPIO_50PINS_PULLUPDOWN: @@ -489,21 +488,14 @@ static int giu_probe(struct platform_device *pdev) return -ENODEV; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -EBUSY; - - giu_base = ioremap(res->start, resource_size(res)); - if (!giu_base) - return -ENOMEM; + giu_base = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(giu_base)) + return PTR_ERR(giu_base); vr41xx_gpio_chip.parent = &pdev->dev; - ret = gpiochip_add_data(&vr41xx_gpio_chip, NULL); - if (!ret) { - iounmap(giu_base); + if (gpiochip_add_data(&vr41xx_gpio_chip, NULL)) return -ENODEV; - } giu_write(GIUINTENL, 0); giu_write(GIUINTENH, 0); @@ -534,7 +526,6 @@ static int giu_probe(struct platform_device *pdev) static int giu_remove(struct platform_device *pdev) { if (giu_base) { - iounmap(giu_base); giu_base = NULL; } From patchwork Mon Mar 11 18:55:18 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: 10848027 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 EA8591669 for ; Mon, 11 Mar 2019 18:56:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D59872929A for ; Mon, 11 Mar 2019 18:56:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C922D292A9; Mon, 11 Mar 2019 18:56:54 +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 7C5B42929A for ; Mon, 11 Mar 2019 18:56:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728533AbfCKS4s (ORCPT ); Mon, 11 Mar 2019 14:56:48 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:42359 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728445AbfCKS4L (ORCPT ); Mon, 11 Mar 2019 14:56:11 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MFslN-1hHPVL0DXD-00HRmT; Mon, 11 Mar 2019 19:55:56 +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 39/42] drivers: gpio: xgene-sb: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:18 +0100 Message-Id: <1552330521-4276-39-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:44hLPQprcZhl19k8eWMXiORgL9JqXdXz5OKfvnKXBBg3KSOeQLX q3QOipU+5xI74ah7dd8z+ev8KhyEDG/X4ZhqPBUSD73iyHbLr7LICnLhgVS5qfefo2nk43O pzEQCF1yFYJ3YWhErEJP/XgXM75RVHF08wsqbJV/MhtETAghRuFsULBE2/Z+QbmGEMGEIWb FASo1Z3lf7Eh0e1PxsVzQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:wMUU8FVMTmo=:x6mUZFGSjJnbhjJi28xOps aReX3rYLTDZ1VIdnBGE9p6ei+RgUnZ1iTg7igjsJsFJQnph3ic1NmaHxUGcDUejlx81jQBoeZ qp18tvMSt11QFV7iu9QRKdwO09S7ZeHSmZeawHSPkiiVo48gQ1FrafHoYbdMI3fj4WV2u0QZB zTimumLKncGKXba0sfYH3wRihIeirf5w3ZPsWCDHe6TLdJpva4fW2vaTCrg8uMXlYjBkmw/+M 5/2Ht7NJiP/bYduUK5ixCCOoqtujn82+RYcItNmIj+A6Iv2bH3WlMm8uB8LdkBbLlSqQ4SP+I oipTJDroGC7vwSvuTmISWUMD6K0CXlCMZZNlzQ4P1tvQZQNRnMMwrqRWvahYPRmVSpa5iMxhA NX3PzQWmFggHFiZDEKu7b53m1LPvVrA6PhlaXgFbDc460+17iECNdTFX5DphiaELh639BgkGh /AJiMLcI/NWDHwp4HhZHTyGkCj1eiwdDRiEfXmzZry/gaDVzUmi8UNTxc5balXV2OZBuC9UkD kg2CB07R5K/X8Vz/648O98LzywnimJQPSqpH+kvt+ro6SA4uJinG0SvwItk2iEWGvRDGRtDdg 5xhXEzhKcTvR6Z2LPiyvdcLf8V2OBpwsYAQnQzAUH7JwZbNbgh36dXuYPvU68mGGJd7AlK4zl mk9wgtuCdj16ptwEMJmv8HkbBX2Uy8yvkFPgbihcY3cbmsyGAo3lUxyOCRdCRRwe8AaUcdMzj PaPDxwfFy8P/KkLu4K48TmawtXL+q9p/1nK8Zw== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-xgene-sb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c index 2eb76f3..641a051 100644 --- a/drivers/gpio/gpio-xgene-sb.c +++ b/drivers/gpio/gpio-xgene-sb.c @@ -229,7 +229,6 @@ static int xgene_gpio_sb_probe(struct platform_device *pdev) { struct xgene_gpio_sb *priv; int ret; - struct resource *res; void __iomem *regs; struct irq_domain *parent_domain = NULL; u32 val32; @@ -238,8 +237,7 @@ static int xgene_gpio_sb_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(&pdev->dev, res); + regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(regs)) return PTR_ERR(regs); From patchwork Mon Mar 11 18:55:19 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: 10848021 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 16C701669 for ; Mon, 11 Mar 2019 18:56:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03F252929A for ; Mon, 11 Mar 2019 18:56:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB8D2292A8; Mon, 11 Mar 2019 18:56:44 +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=unavailable 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 AB5272929A for ; Mon, 11 Mar 2019 18:56:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728380AbfCKS4i (ORCPT ); Mon, 11 Mar 2019 14:56:38 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:46113 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728460AbfCKS4O (ORCPT ); Mon, 11 Mar 2019 14:56:14 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N94qX-1gxYJ13YMp-0167Yn; Mon, 11 Mar 2019 19:55:57 +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 40/42] drivers: gpio: zx: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:19 +0100 Message-Id: <1552330521-4276-40-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:YAkTglQbhSJqAuEsdyXD1wZGtSsI9YIhqg0KHmS5lmAjUi7SyYG HwiNamhHRGfiKsGDinE3otdMtDtWQBAD0AipAbGo7tcZ+6OWYGTOU+GrFNqPIJ9ZcaSpF65 jd94NG6oofEQgNdV4JASJVKEvYRLxBOPXhThUCAdKYALqp0eeh/1Lnr78XbjxENv4YEkLNs B7OBpE/7XyfIs/j7wR+PQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:ScH89ULCJRg=:O76rsyju9sEOg4m+OmNl+Q wlVBNYNI9ItKnqk4ImvNroW8ESLURTSdI9XWxSBRftrlUGUogBxKGqxNGFEiRkE2yR2yhap9M gDxpPqtED4S0BvBRGu1QBM5CJcxUvfxLEiPAWbrTDSo9f1KYZkCWBCCms2U8Iw8zQjgEGSmER uRRczqWvaj3EXmwNMOjnWKC7VE5mQ3UBgtLJbhOv5PhvjMHP/d3wCmleufJqZWAJL0BK2skWD CcKfIh3F8UVHEcni/8/A9W7pTscNnQDjaFpsRnNeqKt/jIpwBOeguq0JCAYGT7VZQfYKOsYRf 2ir7y2MAiQGFQt28fRp9h7AiHapx8X4pbXuqs6DtA91me18awJLTAIfNJy5rDLXOUd4nS0D2M kebRnB7JDQ6qHdndwL/1SPOv7/YMY2S2wvW6oSyrzDzEa846rvsK6iKjdKdK4vJh3503K3imV +zJU7YMUw2gWvJL9z0JRcvoI0ir4FWDQ1etAPhLZiQTZXS1GJmlni0z4YLyG/wwCunLRT7V68 y4dJOBRtF8fsPaefYY29PoNnZKmB0F3iqpR9pKKtnu5Nn+W+0nQJuQmzo7JhRXuAmMulLd1Xq shc0TnMpCSfI3m3K7KdQ3bJjpmxkjTrIF0TqzQgQcfvYsJvUQENln3CmqnO/IIbOaKwzQfnlW DZYDWb1hBd3p5aVpmq9ib53tqvmz7DohvUgvNuqZkO0YDn2nerQTSkKTR72X6KoJkmIPWdODf uVpXXGPoRsbkTuekr59YR3jyjyROYw8CY40jbQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-zx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-zx.c b/drivers/gpio/gpio-zx.c index 5eacad9..fb92755 100644 --- a/drivers/gpio/gpio-zx.c +++ b/drivers/gpio/gpio-zx.c @@ -218,15 +218,13 @@ static int zx_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct zx_gpio *chip; - struct resource *res; int irq, id, ret; chip = devm_kzalloc(dev, sizeof(*chip), GFP_KERNEL); if (!chip) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - chip->base = devm_ioremap_resource(dev, res); + chip->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(chip->base)) return PTR_ERR(chip->base); From patchwork Mon Mar 11 18:55:20 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: 10848017 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 C71C014DE for ; Mon, 11 Mar 2019 18:56:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4A9A2929A for ; Mon, 11 Mar 2019 18:56:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7C34292A8; Mon, 11 Mar 2019 18:56: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=unavailable 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 63D172929A for ; Mon, 11 Mar 2019 18:56:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727708AbfCKS4a (ORCPT ); Mon, 11 Mar 2019 14:56:30 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:56663 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728465AbfCKS4P (ORCPT ); Mon, 11 Mar 2019 14:56:15 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mhl4Q-1gYVBN2hSi-00dphG; Mon, 11 Mar 2019 19:55:57 +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 41/42] drivers: gpio: xlp: devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:20 +0100 Message-Id: <1552330521-4276-41-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:Ebl/mDhgO3X+TD45Mmlesnt8aOyo/ItBE1dervu7xKnkqgy9rPl ZU8NQt4OyItW5fhyPOcdT32HSrxTH/WUFYoQeE2jcjvhynzGoJUtIuXQHvvE8oW4M4D5MVW nhTxzdPfFpCucDxvtiHbGyhO2/D9b7Dq1jqvY2azjJfmX3MZ/mswkXKB0W3PFLdvsy6msor Fet53/iryx2U/NRQKq7vg== X-UI-Out-Filterresults: notjunk:1;V03:K0:NkUzcETFWxI=:ut3VHH5070qjslAcSn/BxX PwyoLovdleZQSvM1uWpAx5OqoaUixmjMDv5jgysJGbPEx+TIMP+0Tfa8q7Gj6rWIdYxALT+Zl 0LQ3tuQNHdZ1IQ0gOr6oWpycFzL+fxckL1hvd/SmzgUctASyAHMHZqjXt2TgRZz3VC5SFNfki sZHmxJJJCI+I9D1Vbo1oJVyKg4VGquA2UleXy57/xylE6WPWpKCYUmUKtZxahj6GxbeMyI1x6 iNdLEx7z0gprvLJZqGc0rWeWxKqHSnAV0Z/1DHUDTA1TT2cVuc+warzdZG2x5tLmUErp47W5K 7xNSyLfHlrAnTgORmwYKSOtreYj7EtKlwu/+q8QU8q+uEzXWLIw/QzaqIBDKBOD9A0f5xzCeP SdCpa1UcQ/m8biTplb1ZeV1R+SwS1qCHIkrR3tLzg586En19m+jejpkpL9mazccIV8bYa9DEg DIJv8kZgMhzvePtlxqUvHfgy2u8KhnoDT1ks3eCpPy0wqoyFDNCjP61vegh2qculXL7bHVw9G HgxDvvYO/5hAjzxWF6y2sJUP3NLzJns5A7aSrqHIjGeW+Bk44TWifKHl96QPykkYH8u1YOcJq PjZCs14P+Z7YnNnrc0ZxEOwr19vXImtcGfj6GAKVZI6aa+veaL4so/5LkqVCt3a/ohXjsEwP+ sK3l7VsItNn7UIbfodkXa6tsJ7WaAMe32+eWYRlDjZf4gu2hFqG71jtMVBYGaN+5IIxt+sArH UnG0Cw383yr7HDYqAHvqZFBliWobeWvpWlK12A== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-xlp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-xlp.c b/drivers/gpio/gpio-xlp.c index 0a3607f..54d3359 100644 --- a/drivers/gpio/gpio-xlp.c +++ b/drivers/gpio/gpio-xlp.c @@ -290,22 +290,17 @@ static void xlp_gpio_set(struct gpio_chip *gc, unsigned gpio, int state) static int xlp_gpio_probe(struct platform_device *pdev) { struct gpio_chip *gc; - struct resource *iores; struct xlp_gpio_priv *priv; void __iomem *gpio_base; int irq_base, irq, err; int ngpio; u32 soc_type; - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!iores) - return -ENODEV; - priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; - gpio_base = devm_ioremap_resource(&pdev->dev, iores); + gpio_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(gpio_base)) return PTR_ERR(gpio_base); From patchwork Mon Mar 11 18:55:21 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: 10848013 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 4440E1823 for ; Mon, 11 Mar 2019 18:56:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 316B92929A for ; Mon, 11 Mar 2019 18:56:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2518C292AB; Mon, 11 Mar 2019 18:56:29 +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=unavailable 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 D3A77292A0 for ; Mon, 11 Mar 2019 18:56:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728436AbfCKS4Q (ORCPT ); Mon, 11 Mar 2019 14:56:16 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:58293 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728380AbfCKS4P (ORCPT ); Mon, 11 Mar 2019 14:56:15 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MRnXY-1hVUY81wdO-00TBmG; Mon, 11 Mar 2019 19:55:58 +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 42/42] drivers: gpio: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:21 +0100 Message-Id: <1552330521-4276-42-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:2LJDIy+/NTyotb6nvlXwEmN99EPjq0YcVBzQbh4KjRi9rAfmUI1 C3Y7OdifTOByscUfTFZpIXO1TCLynfnzceMCY5HxiZXgV86Mik8dApa3MjfPWedJV0J2iLq 7vQ10gnTKbTWpbcqBf4tx01AIDb+m9/LB8DdhnxyM15dcLjD5C+fjbGS2g+pZD7+jJ5N6zJ cavweOpA1vp+cMoGqOw2g== X-UI-Out-Filterresults: notjunk:1;V03:K0:TWrT11k4J4o=:POyb8WLicxVsIKrHqtlzXs 4y7ZFYUxXGgZQAEb7Hb3ujZNcJ6k3z5Xa9IzdKIKvTGtF0NMAVNnM5sM2YFcMLUu73Ne/G4TD hynb3/JsExeKCjR8nTE7HzxpOp6qdYh0Yh51Yk70FYQY0vNe2leVBDcjhFVOFRq6xscTWxfbq r81p2aWg5O2AU7qbqGaJsXUFSnL8pXXSA5NAjDsAQRRhPbutbmp5yRsoT9kAu+fhbpJXNjeEP ANWbluKGkxZqMWdEyqUYsnu2CTFfg020BNdMxV4DE2yV37YcC2VRhvzduE2z2LGZxzJHrJH2C fKDYm9xCp5ipZX2yqSxJlUSPTbZluuvQSccFtpdaKUIgbMvtHw6kmAxmtFPqXySK7mR3pdali Q7bo/zZ1LQkz29dPme0bi1zR4ycpHh/bDnAC1lVSOVrquNpgWXw4ojH8BQzwlNvuKhf/ErTvE O/2htmuYY1FmOKSVPcpOpZcKHRCGYXSNuA71gETjpTfgyeirgcgyvMlwlDiA0jN9zyEw0L9ly H0Tcq0ZidfR8gMsnbxY9LnJbZ8oqXHCg4DdH+0JuIrtTCW8x3axAmTy/Qjr7bh7fkOUAuWQCJ VmGCIlGQbVPVDYuqopv5KicFkt+WbHeUUPG98PgP96Hrr/tHBGTfSFGOXZ9tN59EqGRTyD3RS CfCb/BhMOmY3pyjjVjkZSoauSD7Qyxm/CHxu/4icbhsz6Cij0sAPOKgKhWF1/4MpoIgR3gMMP O5ajKagKpgt1YXNdSMOf9EYVP3Kw2D5yZI8TXQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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-zynq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 00ff7b1..9392eda 100644 --- a/drivers/gpio/gpio-zynq.c +++ b/drivers/gpio/gpio-zynq.c @@ -834,7 +834,6 @@ static int zynq_gpio_probe(struct platform_device *pdev) int ret, bank_num; struct zynq_gpio *gpio; struct gpio_chip *chip; - struct resource *res; const struct of_device_id *match; gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); @@ -849,8 +848,7 @@ static int zynq_gpio_probe(struct platform_device *pdev) gpio->p_data = match->data; platform_set_drvdata(pdev, gpio); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gpio->base_addr = devm_ioremap_resource(&pdev->dev, res); + gpio->base_addr = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(gpio->base_addr)) return PTR_ERR(gpio->base_addr);