From patchwork Mon Jun 17 18:40: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: 11000121 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 F2054112C for ; Mon, 17 Jun 2019 18:41:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E72532881E for ; Mon, 17 Jun 2019 18:41:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB4E6289D1; Mon, 17 Jun 2019 18:41:38 +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 6AB072881E for ; Mon, 17 Jun 2019 18:41:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726026AbfFQSlh (ORCPT ); Mon, 17 Jun 2019 14:41:37 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:35253 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbfFQSlh (ORCPT ); Mon, 17 Jun 2019 14:41:37 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MhUDl-1iFYm80Vff-00eexp; Mon, 17 Jun 2019 20:41:15 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 01/30] include: linux: platform_device: more helpers for declaring platform drivers Date: Mon, 17 Jun 2019 20:40:42 +0200 Message-Id: <1560796871-18560-1-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 X-Provags-ID: V03:K1:vh3WgaKAfp/7utsDwGStG8lhMEJOLPpqeqqOIPZUy69iRDhMgUT YLO0VVH9+WSHOOP9Z9lTkwLZQut5VFowC3UxPBimZV2gDZsASGuddTCo4Ns+x279im1k6P6 DvVmuitj/sUJGSikRzupru9N53/CfW5itFY6p4aDEVz9PvxnW7pBVq3Fmi/cVgqMjBnVHGa GhxJ055QzOASmoYXb/xGw== X-UI-Out-Filterresults: notjunk:1;V03:K0:pncoYwVZfPU=:I4jSkF7FQyUU1Sq0ZMKvoJ hrJzfvo2len4wsFtN0hwymlMcBge1MDGz+loqbRkJ8CW/uRDselgl9z8OUHkvxhAJwTUPCoK2 5LRdxHWKDEVzf+MuRQjoI+ISMzc40B9oTOcQXNJn3uxLp24Zf0lG++O4eNVoKQJk32AVy3b6T 7z80l+YlX2u6QXjMp2DzSlFJ5FwvWeJ2nTmoWP8EpQeg8OoAf/ecvdpSWa7ZjRgf3udyWH7Fm YTcg2Rho7x7lehyZlIG+aFWHsQqBlWWsAa2cKA0/W8Nlk4QHva+ZiPenQ4qo+tavkhrew/M1J 99WAeRqb8RxlmqjxXqIVewncVfPRIbnHN4lm53x1O4kYrdlRETFiqL3wsiLhsU6pb7OhSpcke H01Gpa7OSgdd+7tbdwfSE2dnCuhFHgxdI9iP2KiBrO08v6ihVnsWKvCjCdsBr0wd0c/vmqaaD cOC+hxmoLR4uO7790+Uwko4cRo813Uc1adwb/A7nrMNIWc3D1yWASdCxy0X14MJ5ewLUt3EMS 04MllSWdEijwsXKnH9zr+YctR/GxkORREQwZab5xab0l6k+QY4bGbB1FH1I6l1cMBHHJ0EYMf xUbRGtlHTBwRBpR7kHDfTij/AkHg00n1c4hTwOWu7/YHW1ud65SgcWkdAVvYU8Mr1ylUhXiUU 1LeCBRSQvuBLsKgKGHNygUZdlvOtR7m3hQ+MhrZslo8e24+3/0fbPcwoAc1RtbmIk3gFaYxiZ TlsWX1yXNmkScOxTVP7Gxd5Jxz50lkfGbbRVwQ== 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 From: Enrico Weigelt Add more helper macros for trivial driver init cases, similar to the already existing module_platform_driver()+friends - now for those which are initialized at other stages. Lots of drivers couldn't use the existing macros, as they need to be called at different init stages, eg. subsys, postcore, arch. This helps to further reduce driver init boilerplate. Signed-off-by: Enrico Weigelt --- include/linux/platform_device.h | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index beb25f2..5f3a967 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -259,6 +259,57 @@ static inline void platform_set_drvdata(struct platform_device *pdev, } \ module_exit(__platform_driver##_exit); +/* postcore_platform_driver() - Helper macro for drivers that don't do + * anything special in module init/exit. This eliminates a lot of + * boilerplate. Each module may only use this macro once, and + * calling it replaces postcore_initcall() and module_exit() + */ +#define postcore_platform_driver(__platform_driver) \ +static int __init __platform_driver##_init(void) \ +{ \ + return platform_driver_register(&(__platform_driver)); \ +} \ +postcore_initcall(__platform_driver##_init); \ +static void __exit __platform_driver##_exit(void) \ +{ \ + platform_driver_unregister(&(__platform_driver)); \ +} \ +module_exit(__platform_driver##_exit); + +/* subsys_platform_driver() - Helper macro for drivers that don't do + * anything special in module init/exit. This eliminates a lot of + * boilerplate. Each module may only use this macro once, and + * calling it replaces subsys_initcall() and module_exit() + */ +#define subsys_platform_driver(__platform_driver) \ +static int __init __platform_driver##_init(void) \ +{ \ + return platform_driver_register(&(__platform_driver)); \ +} \ +subsys_initcall(__platform_driver##_init); \ +static void __exit __platform_driver##_exit(void) \ +{ \ + platform_driver_unregister(&(__platform_driver)); \ +} \ +module_exit(__platform_driver##_exit); + +/* arch_platform_driver() - Helper macro for drivers that don't do + * anything special in module init/exit. This eliminates a lot of + * boilerplate. Each module may only use this macro once, and + * calling it replaces arch_initcall() and module_exit() + */ +#define arch_platform_driver(__platform_driver) \ +static int __init __platform_driver##_init(void) \ +{ \ + return platform_driver_register(&(__platform_driver)); \ +} \ +arch_initcall(__platform_driver##_init); \ +static void __exit __platform_driver##_exit(void) \ +{ \ + platform_driver_unregister(&(__platform_driver)); \ +} \ +module_exit(__platform_driver##_exit); + /* builtin_platform_driver_probe() - Helper macro for drivers that don't do * anything special in device init. This eliminates some boilerplate. Each * driver may only use this macro once, and using it replaces device_initcall. From patchwork Mon Jun 17 18:40: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: 11000183 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 508CF1580 for ; Mon, 17 Jun 2019 18:44:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45C2228538 for ; Mon, 17 Jun 2019 18:44:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 396A8289B8; Mon, 17 Jun 2019 18:44:16 +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 D305128820 for ; Mon, 17 Jun 2019 18:44:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728721AbfFQSlo (ORCPT ); Mon, 17 Jun 2019 14:41:44 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:55069 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726095AbfFQSln (ORCPT ); Mon, 17 Jun 2019 14:41:43 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MowSu-1iPkr60HhG-00qVKy; Mon, 17 Jun 2019 20:41:22 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 02/30] drivers: gpio: altera: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:43 +0200 Message-Id: <1560796871-18560-2-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:n6lNF/HiERfH9tPVBrtbF8cjwb9Kd5R4hEw89zBMMBUSS2AViuC 4gJyGnofyR32s6hyLipxjrmtm0hVyHI6gjievevJWOve7tRnvPBcIMtAJw7wKJhAWq5rDjj Iyj9m7RQrAUUKBSUGqHD1PBvmVAELc1atMNKegIh8gMZfgg4yV3opmtlH4Fg5chMY3jfnUb MdYDYDeTK0EIp4a8LH4YA== X-UI-Out-Filterresults: notjunk:1;V03:K0:FubfsVQejOg=:hcx/YkqnedyIVid8oMi3jN yFOL1ldrSamVyPD1XqgcK7HgFK+YLZiUZ5yvtylcHhNZk5uHA+E7qZ88wMhHMfx/G6qICZD0t kUFz1TDSL2m3B39o8Io548h4eFN/QTaqpPmDIe0dunWwnR1niVaJ+u0P0aqZd25Dz4V8TegoU pnvj81x//YNVy2u9bJ0kzKQxjgLvAtc83GT8hRXOiDQFPm9mriTFPaw1bpeR1oNppt0pK83dJ dD3mH7BDynA0Q4gJRNVe3ofzSKpACg3mGS7U9Vq2lYVKtrr/SyraobT8ddVtOx3qWQIW4RD3v fjskP8Mt6UrUjEJDI1a4nmMvvYdD07zeobqRexYJCodR3kxAkE8iDK5liLpetva6eRoNkJjFX b9uKQXHWqbf4vnKcgKhkMLaddWIxFDwa4F2DxlBbqF9Z5OSAq8vVPA2y06vqu/VVEtOAra6v5 K89jcHmBOGrt2YxGcaQO4ADJoAFw3n+DDbQL7f+fjeIJDS3PS0S3hoA0Wz14HnVEeV+yD6LSd rzL3OApCEIKrUxcGx9Z4W21lsMRMqPj7+3/YclHcYNUiad8gv47ZcU1aICcAME4tCBOv6a9Ko GGL12YFdJN5kIorHVpjmaAXnznWQPuaMSTNIur8CLGbRii4Vg63T6blfjBi4swjCMcib4ojaD 48A8xT3tkMu3KlL2VaZbvNvw/u0D38Ga6DgmOIxmWdQbhVbYsS4c09qzB2a/ebj+8aJS6Lcbk 3G/hwmRXYSg8ea7msahEPVimEv97KizsfoZKPw== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-altera.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-altera.c b/drivers/gpio/gpio-altera.c index e088b90..b757c650 100644 --- a/drivers/gpio/gpio-altera.c +++ b/drivers/gpio/gpio-altera.c @@ -342,18 +342,7 @@ static int altera_gpio_remove(struct platform_device *pdev) .probe = altera_gpio_probe, .remove = altera_gpio_remove, }; - -static int __init altera_gpio_init(void) -{ - return platform_driver_register(&altera_gpio_driver); -} -subsys_initcall(altera_gpio_init); - -static void __exit altera_gpio_exit(void) -{ - platform_driver_unregister(&altera_gpio_driver); -} -module_exit(altera_gpio_exit); +subsys_platform_driver(altera_gpio_driver); MODULE_AUTHOR("Tien Hock Loh "); MODULE_DESCRIPTION("Altera GPIO driver"); From patchwork Mon Jun 17 18:40: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: 11000185 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 55FA3112C for ; Mon, 17 Jun 2019 18:44:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B96F289D0 for ; Mon, 17 Jun 2019 18:44:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F369289D2; Mon, 17 Jun 2019 18:44:17 +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 DE0C328820 for ; Mon, 17 Jun 2019 18:44:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726851AbfFQSln (ORCPT ); Mon, 17 Jun 2019 14:41:43 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:47939 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbfFQSln (ORCPT ); Mon, 17 Jun 2019 14:41:43 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M3DBb-1hdkz93fAL-003e79; Mon, 17 Jun 2019 20:41:23 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 03/30] drivers: gpio: da9055: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:44 +0200 Message-Id: <1560796871-18560-3-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:Q5PltQXfiTOKHrKSj/Mo0rLI3IO7ONIoPXqcrcBIRXSnUAJ8vQ3 wn1jtR1xBNHqfmRS0rbCc116r5T7LrtGwvVWsxrPVqXea/YZ+pVMj1nPRE2rsfDfskBXB3t 8Sndve/+Bc55xXUqoxgSYGiBcYrkPefxqHAChWvwJ9wKATWTH801QzMXNEgcGFdwiALljoc r/1VvOX6UEa2O5X8ha6mw== X-UI-Out-Filterresults: notjunk:1;V03:K0:UWp2ZL6PlN4=:2AH/c8BuRTW47BCMNdDqvv yDVEK3Sv4llPKToTHOQF9SMBJIZb2gIqZ+qlt9lapxCJmy9hoXYI1IaNCNIRmYtyvdRIvxmfM ui6NqAxXdTXfiOjsYp7VXNocwVi6KByYslGsgOTi4Vf2ZGW0KR9/1BqTK8R3kCveCp9r1piUe MQCG9K0PcWW4DORT5Mq1WJHM2+EtfDlfetIjsUJec1T04gjF8BOiKMfzQMLPkucA01pCymdSk UJD+eSoCMsj0CLHhDkHwwJO0KfWnoziwFNF2KIzhI0KxEmYTDGBSkT95mivFWNPXlhO5M0i8e WFtkZ8HE9bADucd0aFdICO9KPPhN1UoeVfN7EhdvsCGm+dtwRDvMYab1T8fKI3P9ULDhLGiPs DUyCsJxi6SmvFbV9McDe1bV3L/iyGS/1o9jTlMbnBBJULkTruOqNQ8ViAo3FaoNcnwwlqcarQ tRqfkew9JOrFLtQVzLzSa3/3itNZ4QHjMsQdF5evdMVI2gBP+GQmNUS/upSlqNmrM40v+rd/m scq/1nIJFUNzhBV5pA/JDqCru9IiWbw0D4DfpAp2EI78InNrxkmsFgbFQswJWLxHz1Z9nlBN5 WzOswPED15wnkSUOpZ1C/+IE8aSVSjYdjtCiKWFSdWEXDVO9T7YSbqz41O1aou9QOU0cBKgrv OvFJhbVGlwvLY9Hxx82oEi4LIjFCB6ig8JM3d+EHGzKOCNa33TESzJSrCIqzpPRncZFBNGPnU aI6WiZpqzYApZDDynptHCCxAyvi/wlJ5T1FfPGqJMhy1CMZVBzTUP4R8oQZPX1jBt0vOfnneT UdQSn0whmPLAuIQpa2O0EATeqv7qvhc027itMVC+wv1DzEWhE2KBm07GQeCuGQll/T3BMuTJB SUuDBQddwizJpxw0KcIlY63jUEU5U/cPmxKwokiATJYCGXc8l/0oXIhaJQMkdc1FSbqVbSoqb kRmWLcTUP6Q== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-da9055.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-da9055.c b/drivers/gpio/gpio-da9055.c index 6ad0c37..d93f8ba 100644 --- a/drivers/gpio/gpio-da9055.c +++ b/drivers/gpio/gpio-da9055.c @@ -163,18 +163,7 @@ static int da9055_gpio_probe(struct platform_device *pdev) .name = "da9055-gpio", }, }; - -static int __init da9055_gpio_init(void) -{ - return platform_driver_register(&da9055_gpio_driver); -} -subsys_initcall(da9055_gpio_init); - -static void __exit da9055_gpio_exit(void) -{ - platform_driver_unregister(&da9055_gpio_driver); -} -module_exit(da9055_gpio_exit); +subsys_platform_driver(da9055_gpio_driver); MODULE_AUTHOR("David Dajun Chen "); MODULE_DESCRIPTION("DA9055 GPIO Device Driver"); From patchwork Mon Jun 17 18:40: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: 11000125 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 6DB5714DB for ; Mon, 17 Jun 2019 18:41:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6319D28820 for ; Mon, 17 Jun 2019 18:41:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5760A289C9; Mon, 17 Jun 2019 18:41: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=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 0893F28820 for ; Mon, 17 Jun 2019 18:41:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728718AbfFQSlo (ORCPT ); Mon, 17 Jun 2019 14:41:44 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:33781 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726535AbfFQSln (ORCPT ); Mon, 17 Jun 2019 14:41:43 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Md6V3-1iBB3Y2vZr-00aF6z; Mon, 17 Jun 2019 20:41:23 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 04/30] drivers: gpio: htc-egpio: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:45 +0200 Message-Id: <1560796871-18560-4-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:RwgFmAEyv1n2hFnjBFxldqdtVTz9NuzsBFs1rsWBuAG7a6EOF8U D0jzZGXTuPhFo5yWwS4c1Rl8RjJfm5APncOEUECZb6Z2LtYnP76UnbflJORhV4hH0Lwp5O7 LcAIMOqIHwcJBp2QNLl60mWH37OrPFS5pE1cVZQxH8RU8HEWJFVnEyEut4Ki3yVQ1KD3Cl/ uigegXYy47qr7vxzBqxvw== X-UI-Out-Filterresults: notjunk:1;V03:K0:TpXdJMxOdO4=:gAmkSvXxjg2hwntDW2JfUu ATMMTR7e6Aw+bP4NLJWmVtwxoChPtzJNJQtRD+JyzOya06sYBXVGKoo1fQZUdCQRNXW98MJVf KMAupSauqqLD4CQGmgERW6yu1GqtGnZQWZ6ITPJbP7qKya32N+a68saJYpHdIr/zeU8uyi4zt po9c2CNC49Tl7YuG6otKslk+naxq+aQJ9l7eLp/Ln+qnf0XoMV7zaOYca6KpB3lNJxIJ15iQW 2PefcO3IsliP66nNKBEvY+SBhc1PptTmITwOB00hVmzpi5Ib0mQv1XhTuIS0SGf78wcWRZ+hp hemPTLklcu70zbUesvMzz3kmW2wTf1oMkax4fzc5rgPAauHSu8hLyU2Q/9mdDZ5H2IJG1NdgA 0j6+gUfn1brZ6LjRqkLT2Z078y1CICMSQf+warTDpQ+RZKSa6J5RhgTezwTgvJeGzbpeN88XA boHGVk5oaLdHOe5cXpDlzGWhd9vBn1ZR+tiUzGEpEVc7O2bXIqQ5dSj5M/HTUtKODXxpL+Hve 8LU/Q9uUnSXu4mTeg0IAM6JZG31IqAPu6aRNSd50nWgoeo8q92Xv/3CijhqkkYJS4SZEAj31a jSborxLHhPm6InAZUuAwLJisXFcxO50jfUGjqPDMBHktCRLB0jV4+hmE1huSfsC8UICDsngEE wubFcljAehhjTZrT/7/G4f7W7AnsDvWNPBZJGQk78E2lKCh7AJ0tF4/dtYzql2fS/zIFLJhkN Q2Bg2gWqalQPdJW+SJq1zdWfCNv7JIF+NYi0yA== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-htc-egpio.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-htc-egpio.c b/drivers/gpio/gpio-htc-egpio.c index 9d3ac51..cc7a655 100644 --- a/drivers/gpio/gpio-htc-egpio.c +++ b/drivers/gpio/gpio-htc-egpio.c @@ -422,10 +422,4 @@ static int egpio_resume(struct platform_device *pdev) .suspend = egpio_suspend, .resume = egpio_resume, }; - -static int __init egpio_init(void) -{ - return platform_driver_probe(&egpio_driver, egpio_probe); -} -/* start early for dependencies */ -subsys_initcall(egpio_init); +subsys_platform_driver(egpio_driver); From patchwork Mon Jun 17 18:40: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: 11000123 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 27851112C for ; Mon, 17 Jun 2019 18:41:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C71328820 for ; Mon, 17 Jun 2019 18:41:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10A20289D3; Mon, 17 Jun 2019 18:41: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=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 BC99C28820 for ; Mon, 17 Jun 2019 18:41:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728698AbfFQSli (ORCPT ); Mon, 17 Jun 2019 14:41:38 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:60101 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726535AbfFQSli (ORCPT ); Mon, 17 Jun 2019 14:41:38 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MAORp-1hn8v92BXH-00Bvr3; Mon, 17 Jun 2019 20:41:24 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 05/30] drivers: gpio: lynxpoint: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:46 +0200 Message-Id: <1560796871-18560-5-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:/j4c3FyWT7iNyjBM83hS+oirnyGOSBHrDy4mSedO3eOWbp294SX A+Ed8X11Ylq2mC41dad6tu9XDE3eB5sIetcv6lTw7L2rRsguhB5Jv0gBiufWxHdLJnH470I Jbxi+YCChbbgscoDecbvtrwBc3W9XqAiePBIZ6VDHC5IJbH6bwas7iwrFDGTyzN0/G5FpUk iCinY4J8YA07zTMcIQzpg== X-UI-Out-Filterresults: notjunk:1;V03:K0:I69TDSvAHEk=:354x7iU3r/TnN7yyD7caOR mtV7+NWSZ7xIG6yHHD7tPPe8iOz/YzBVTvve28kblCC+rX63X8HuAc5LMzsF9O7MOmLdSo30j YZYISl3GofEDNbdLqYRbUFFiv49/pw3pqaGALJdwRZ2+l7w54/OSkDXFIPl3I02lUDmIzzMcB S4r7og5ohxiOuFoQfNuB307tS3Eis6r5zA3sjx0tmyBUIPqkG4nl0IMklORHolIsCIzJzdi6L i+Q9R5WRZpqcK7h4O/UtBtZe36mw54h5QBgkkGVnctk1G/JP740CwQOfmY7a1jup80EikYmgu F1nmXuwiabkAcVq2WAGmoKJdB9rNjsM133FYxz6P3fsdS+7z2WqKmM/PRwhKHZj6CEKLULvLM /10hl0Iz97n1N1zWWGCKiF2vkLbtZExF8rxIqqlhvcki40haTE8u0ICCvV9GXgjT8wCfeSLCP 1zNfMNKOPiML6rJFU6dSj/gpg2bh7/xcTgviQwV1by96jtLbvfdHo3kkCwjXytiYDqAz/u3dM kADOAt2BLFQiM9758631Fu/ml12cXkJqfyftZYWHNwyRLSDo7tsndy5wtZ2l5Iovg1dEgtc5V pl8hKEHhmVg8ciQGM2xgT/6W0dmU0I5Qs98JyvpNAOLp8bAF0w3JtKNFiaeh4Z+gJJZKZeHvl BhICMKtCnmu2MmvEZuT+UiouopvbByt4OX8hdd+M2ISTKsaA7ORP0+WHmqW094b8E7z+tv9z9 5TXBh76124MvoTFW6wLqAPAIZAzp1lPVLhJjLA== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-lynxpoint.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-lynxpoint.c b/drivers/gpio/gpio-lynxpoint.c index 31b4a09..8e6b998 100644 --- a/drivers/gpio/gpio-lynxpoint.c +++ b/drivers/gpio/gpio-lynxpoint.c @@ -438,19 +438,7 @@ static int lp_gpio_remove(struct platform_device *pdev) .acpi_match_table = ACPI_PTR(lynxpoint_gpio_acpi_match), }, }; - -static int __init lp_gpio_init(void) -{ - return platform_driver_register(&lp_gpio_driver); -} - -static void __exit lp_gpio_exit(void) -{ - platform_driver_unregister(&lp_gpio_driver); -} - -subsys_initcall(lp_gpio_init); -module_exit(lp_gpio_exit); +subsys_platform_driver(lp_gpio_driver); MODULE_AUTHOR("Mathias Nyman (Intel)"); MODULE_DESCRIPTION("GPIO interface for Intel Lynxpoint"); From patchwork Mon Jun 17 18:40: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: 11000179 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 C3B2F112C for ; Mon, 17 Jun 2019 18:44:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B84D5289D0 for ; Mon, 17 Jun 2019 18:44:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACB14289D2; Mon, 17 Jun 2019 18:44:14 +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 60D6A28820 for ; Mon, 17 Jun 2019 18:44:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728730AbfFQSlp (ORCPT ); Mon, 17 Jun 2019 14:41:45 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:33549 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726731AbfFQSlo (ORCPT ); Mon, 17 Jun 2019 14:41:44 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1My3AX-1iYB1C1P6F-00zTbF; Mon, 17 Jun 2019 20:41:29 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 06/30] drivers: gpio: lantiq: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:47 +0200 Message-Id: <1560796871-18560-6-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:GNYirr7jJEU69T27OYUit3DCM2eQ50qRxRzE0yyrJ7VYcGGI0FQ tSb1LqO5HXvshCPpgNlHKsFwE9pjMgdLUghNSIZGWhdBKZUFPs/UX2lVoKqNPJd4OOOCyuu QvH5XsWZrprwyKtNza7TVZrjRyaVDmsHXpdFouFyS4/1Wvo2ed3bxgLaZplkQlTvmOtZrTR 2owe9fm1A5TvMl0zxZquw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Mw4fZ2uihQA=:FMr4oJjRvghnAVG6L0uOCz gQKTXO9RJ/eO3egisxNa+n460m7XGrsy+n9BK2yOXzE1H9RJuHD5SXncy5WXGIVkXK9/Zq56A K6mhJCiCGm9z7uwg5CoZuZlgPnEKs+JByB2yI8eRgaJAFS3+qRGaZA/qrI+cjxcnXDxsXlIEi 9bnOXrB0DQQsDhzFGf56uyicfyUjzNjkiyo+9CmGQZWsVytUtbIVQaq2TH5tDIgpLv55EbqbA QB/iL3neyNeXqq4Ec8t6Oo0KUjZ2VAIXxlwHd7pJW6g+558sFg9+hYSFfD5eCbxbdDl31E9tT 0IqxMJUOSds2Gyn1e50sx1nrtvQQQVaJRdxsHPdLgSFkHsreL3GXAlps88Ep+782300yWXsh1 6BlhEhIny9fqeDz7PsHLNOgu06SRaIXTaOnw+jOfeG72GhWDyN1bM1Xiwk1nrxgmXVfWhvRdL Qbg/1GIOXfNTB5dsEvooRieWO2vCM6Fp2CCFXkaontZ49YbOt450n5IxrvIcu+7bd6on+lGhF d7sfcpXac9mfeI5FD6SK0xYrv2/vPzlajvGyX0h/laQzkYSbwJEE3RB8hi6AGsWPTY1ihS4xR JjqwebsqEipXA9wneLyd4B2flndTmtIkWkoX9DY2gR5sWCT02pUTiBZMpiTy28uNYY3UsT7B3 VgLPCwiPkvqG2XuGdFYQJsI0PFD5QJUqFqlOhjOuTd2l2QI4+3Zc8Y3+O1gML9V6iy/2C9tnh nyu4lDFtepgVaQxIPWB6M3vZ+Qu7DFcdxNIuPw== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-mm-lantiq.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-mm-lantiq.c b/drivers/gpio/gpio-mm-lantiq.c index b0754fe..3e5ef46 100644 --- a/drivers/gpio/gpio-mm-lantiq.c +++ b/drivers/gpio/gpio-mm-lantiq.c @@ -146,16 +146,4 @@ static int ltq_mm_remove(struct platform_device *pdev) .of_match_table = ltq_mm_match, }, }; - -static int __init ltq_mm_init(void) -{ - return platform_driver_register(<q_mm_driver); -} - -subsys_initcall(ltq_mm_init); - -static void __exit ltq_mm_exit(void) -{ - platform_driver_unregister(<q_mm_driver); -} -module_exit(ltq_mm_exit); +subsys_platform_driver(ltq_mm_driver); From patchwork Mon Jun 17 18:40: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: 11000161 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 720FC112C for ; Mon, 17 Jun 2019 18:43:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6594D28685 for ; Mon, 17 Jun 2019 18:43:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 588CB289BA; Mon, 17 Jun 2019 18:43:23 +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 EFA0428685 for ; Mon, 17 Jun 2019 18:43:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728799AbfFQSmB (ORCPT ); Mon, 17 Jun 2019 14:42:01 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:45181 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728838AbfFQSmA (ORCPT ); Mon, 17 Jun 2019 14:42:00 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N2E9Y-1ictzX48Sc-013cKu; Mon, 17 Jun 2019 20:41:34 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 07/30] drivers: gpio: msic: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:48 +0200 Message-Id: <1560796871-18560-7-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:yJFhu1QLeFAijmsii3GfgqPjU9KlJQygg8gkAZ0J/CfjZ+vPBSK 7fBgwp7EjQh6jTbruay/xqHtivSQ0Uv/nAW+mi5jJunWoPnC50t8sA/xx1SQfZ72EeVQJ1n vcCW7Kq2aysbfI7g3No2PAn83tXYmWQy8CaCHfrzukXXeODDK8RUWkm2PqWGosWTatJ+jib i2JRRuLw56VW53N7pP47w== X-UI-Out-Filterresults: notjunk:1;V03:K0:R0ukR3VM6a8=:WbmrvP/nlyY8CXTo7mO+Md OLSbVdWEQevXhDeqfMRASVVB1cMt7jRLmjRfAFK81n92GAUuDIyypvIrkPTUw8dun53KwTEU8 j8A2O3d9COwEnY6jwb2riTww4dc9Y/vY9dULuNoeF0b41l4PpEXXvZ1gItgaAsT7/Zu0VTOaO hBCkNUl+O52kGmpMT8vOudiXxlts4FSMLFeJvjUNdtmLEVWLEazzgwdeSDMN+X4HTYMxDArB4 rrlvhIgvf4mrzciIX/xcAGP9UwFe/gcnxwImUY6TFjbvBXx5XRxIOPzgyqRsz2a5+CrmBHVo+ 6qxgZJ+yhp6rEdBC5HpdTXNNZw66b7FYUNDBwDOOJ2KAfYx4okW5dpsXqtdW/SNq2SW5+YRlx 3KN+X4iyxsTjaxBg6Q+Bza3uYRu8iC2vpVjXXVzETydSvP20WvKdFpaLb6I0VP05XlACzS/v9 x34mYJh0mTmzdoNx+PeEM+xRmZxaIja7qrJxLnFbuYLJfGDvQquHHkfhx+zABcAF5UIqyRBNQ GlIcrP8MSjYNchWh+e1WpdhsnmQRcAEpWqVwszLd6w7MiU18xrhsSXFYIbfMvtzLtF9bgMlqh jvpGUE9Sceu10XJ89A+gEt/Q5TUL4P1iLKbkZV5okzAG0056aK04eI1+vwFhDTrwrqgmTm0CD 3VyROm1p1k66LE7h/U4djCsv6bDlA5C/pznVj0HVcBkFotykWsg1ZwAFeasGVMMPzyKsdPht+ cmir0Mt3XXrn71blSgnKuudIKvt6M6F68dVmXw51rT+caqIgtP1XljT8FnU= 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-msic.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-msic.c b/drivers/gpio/gpio-msic.c index 7e3c96e..5903ce3 100644 --- a/drivers/gpio/gpio-msic.c +++ b/drivers/gpio/gpio-msic.c @@ -306,9 +306,4 @@ static int platform_msic_gpio_probe(struct platform_device *pdev) }, .probe = platform_msic_gpio_probe, }; - -static int __init platform_msic_gpio_init(void) -{ - return platform_driver_register(&platform_msic_gpio_driver); -} -subsys_initcall(platform_msic_gpio_init); +subsys_platform_driver(platform_msic_gpio_driver); From patchwork Mon Jun 17 18:40: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: 11000173 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 1DC40112C for ; Mon, 17 Jun 2019 18:44:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1253F28538 for ; Mon, 17 Jun 2019 18:44:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06A2328820; Mon, 17 Jun 2019 18:44:01 +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 B45952881E for ; Mon, 17 Jun 2019 18:44:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728803AbfFQSnz (ORCPT ); Mon, 17 Jun 2019 14:43:55 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:58803 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728766AbfFQSlu (ORCPT ); Mon, 17 Jun 2019 14:41:50 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MxDgs-1ia6h43Oy8-00xYak; Mon, 17 Jun 2019 20:41:34 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 08/30] drivers: gpio: palmas: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:49 +0200 Message-Id: <1560796871-18560-8-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:52SXi3L2+ORnIKsoInSeCQIdMCF5PqEvUSjZ1IUqdMXOQjJz6CK QFuwK7in9fJYjIHT4RIe/33222jvXueshWiZ8Ty5PzTB0cL9rtWBFW9GEUfEO7THrrvJ/wa R1wYvi9ClTKRtByvwAcWPr4gyEb3kRQGl2BdljXN9n+db1DZ1QGFXfMfReOYRRr273ZH2DY /ujckZ8//MAObPqGSHK0g== X-UI-Out-Filterresults: notjunk:1;V03:K0:yJUB0z5Bicc=:qUUcWOSONcIQ6ODc1wyPsJ WrRlT9QHHkK+w0AqpLSmh3m1e6+tREInEOeJHknNVa12/TG6CmP9E8mozvWQY6yd3QEECRC8Y Y4rx7tcfFd5NsxIIE2x7yv4Aa48ET9GRaXMZa1cafuXhyDaoIm4r85pFHOeAYpemTB8kdOcih 8ukpgLFvCs6IBYRUCj/8GulixCCt+6G39WaL8qUESfpLWYq9mPuR14XgEDdcFO+3EQr/+/RLg Goripr+/9PvgWI8OOtaouUBBDlOb7ILPBceTTWrAvPd3e6RChKNsRp+jyiKIRHjRT/29bHc+G Qlhm8dvTJj4m+22nBZFGXU8zx9FBth/4yPu9dejlasoAEfLhfextU9yJ5OzJoDfq9zQV26AVU IY4ynzMekCMuPxf2f1eie3A38WkPllRnGwV+4Nmr7BjAYx40Tkf6bkYx9YmqxLR6GsIPwmiQi hyOewigA+Z4g1CuCRQ7nZhXTMNkqFH/WcHC2440ycBUsrZOcgNeMLctMqMSInbpbfeZPFu/X8 PEHTFxtnzMV3Np1KVZwQgXRGfF8Ul8J+QiZdjVi94HgsA+BeDI0ETIb5IAkoyER1fQHU8sdAl nchOBjfVXdrwfMetWrX/wxGeWMukc30nGGm8dsOLRfwP2dTT1jFsMT17owQyzVbEGyEs6ZqZ/ I55uY2EdqrO2HUVzKx2bWX0me5ZRLPnCUYecFWAvZQiRY3FwSa7/QcEfxkgr9hIDxnB5RTYBn ClsEPOVYoL2cdIQEvHMoeQInju2Aw5va+WhMFg== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-palmas.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-palmas.c b/drivers/gpio/gpio-palmas.c index e8e9029..4726200 100644 --- a/drivers/gpio/gpio-palmas.c +++ b/drivers/gpio/gpio-palmas.c @@ -195,9 +195,4 @@ static int palmas_gpio_probe(struct platform_device *pdev) .driver.of_match_table = of_palmas_gpio_match, .probe = palmas_gpio_probe, }; - -static int __init palmas_gpio_init(void) -{ - return platform_driver_register(&palmas_gpio_driver); -} -subsys_initcall(palmas_gpio_init); +subsys_platform_driver(palmas_gpio_driver); From patchwork Mon Jun 17 18:40: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: 11000177 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 5EF5D1580 for ; Mon, 17 Jun 2019 18:44:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55A7F289B8 for ; Mon, 17 Jun 2019 18:44:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A008289C7; Mon, 17 Jun 2019 18:44: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=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 E055F289B8 for ; Mon, 17 Jun 2019 18:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728764AbfFQSlt (ORCPT ); Mon, 17 Jun 2019 14:41:49 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:33337 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728755AbfFQSlt (ORCPT ); Mon, 17 Jun 2019 14:41:49 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MQeI4-1hxCRN2g34-00NfoG; Mon, 17 Jun 2019 20:41:35 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 09/30] drivers: gpio: rc5t583: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:50 +0200 Message-Id: <1560796871-18560-9-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:NtfiuMTxPtr80+HHq665BNavw/BCJA4CgEhl2ViOFLYgu88eWOU 2hhnzzDAS/UIAhXsTLZmMhvR5azFrVgoO8K7O9AWO18mS71Q9QqXPk/QlZ2hahMSN8xLbH5 BpvY5n6zqLpshIgXs8kSDc0umTxmPZzUc9x16Y8s9R5fMBo3hrpHjBCyNxJ2e5JGiS4K5mA SPsRKeySP2Rf9bfO4EIEA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Z7+Hk0iGS8w=:v68Ui3dBufbwKf2fdxsih1 xyGo6MFOXAG6Rnqmex/eTqJdHND6dM1aL2DoQusdjev48d5nW747jhUT6QhIqvsQ+5PGH6DGC BwYjLMtTlsn5LMOYV6AMnQSt6qpgRqVDJxAwMxLYuLo9oPQWRlu6vFzdtt/A+zIjH2mpYuwVS YiJ/5C0QGAVVtovX2y6+lHyEAo7XYdbPZTk6illizoNnZ7qJ3fwSTUUxLT+ZDEiEbj/yG16gO j+UQVHaDEIiNbxyYp6b+KEvV7TRMKHSjY+CH7jIFjIZVNFVktw/5cwb4mv5et+1gYpitKQUy9 5938IjvzhBbM9EmD/5y8h9DbBaE6/rT0TTya6auQEKHcC+C3vm20u2LUVoXOWBRdJsRO/O1mO MKla7BMEN+9zwuvV5dSRg+LI20ILNFEUJ7ljD9FWS8e2NoT9ECtiClxKiqjGXm0zMDn6DrPpD Itv8kFbZAh4DyIkM1KRgJYayh0Rml3vCW2/3l1e010aV0TDQGboRNzYdBVfJribaswChdeWZt BA6mb354jeWRFXEIl/olhVUSL78s9eAd4jhWpAh4UdbMDJcmnanoX5AX1lY3BqdGJ4WGRKada PWHOLSmslGlhYMoyD1wA07U3cPzPpxPi28B+wzWxeT8pPsOYNdu2XywZtsf12pswdjQp/yWx6 ICpqNo33jhYCptfF+oqDt/2nXnWEcNvdV2n+jTkyfHO9NKdra44/j3c3ANoZD+Vgp4uennAmd i1iPHcmZDZMmiQb607DBQRiOmf8lQ+GHpaqvNA== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-rc5t583.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-rc5t583.c b/drivers/gpio/gpio-rc5t583.c index 4fae3eb..d0dd3c2 100644 --- a/drivers/gpio/gpio-rc5t583.c +++ b/drivers/gpio/gpio-rc5t583.c @@ -133,9 +133,4 @@ static int rc5t583_gpio_probe(struct platform_device *pdev) }, .probe = rc5t583_gpio_probe, }; - -static int __init rc5t583_gpio_init(void) -{ - return platform_driver_register(&rc5t583_gpio_driver); -} -subsys_initcall(rc5t583_gpio_init); +subsys_platform_driver(rc5t583_gpio_driver); From patchwork Mon Jun 17 18:40: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: 11000175 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 C722314DB for ; Mon, 17 Jun 2019 18:44:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDE05289B8 for ; Mon, 17 Jun 2019 18:44:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B27C8289BA; Mon, 17 Jun 2019 18:44:09 +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 6C4AE289CF for ; Mon, 17 Jun 2019 18:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729087AbfFQSoB (ORCPT ); Mon, 17 Jun 2019 14:44:01 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:44289 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728760AbfFQSlu (ORCPT ); Mon, 17 Jun 2019 14:41:50 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MOzKk-1hzwXk1n6i-00PJha; Mon, 17 Jun 2019 20:41:36 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 10/30] drivers: gpio: spear-spics: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:51 +0200 Message-Id: <1560796871-18560-10-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:4h6NwlU1DftNIO46WTLlIk1U9jeIrbC+0HB5ro+yUcwM9EiZs2/ pDGYqRWRH0GUxeSGS90EtGopJnM/wqYUgcxkI3p8C92KBBLwFAdIlIUs6EEc+A7oaLjJSU/ K17l1KHC59XsgPRYwCRH6LKV6AQKi7//FodS5pmevdbF3JxK9piYHCouAOa3k3cIzSeKHwe mx/r615pVKlQNOBBYiCgA== X-UI-Out-Filterresults: notjunk:1;V03:K0:0th+QeGO5Oc=:LhQhQZkNQpC5fBq+Ljrj+r YFA65RxCxr2pBwmYxN+W8AZ1vMcmZKu9LPuu+xsxh5oMy0sseJ0kOq1yUk31OSdgkmu5OOtoq IRRUVI/fYBFgn1PbXDIxuozuqjiUxXKLFfNTnRHJrejWwDOHOYAQvOJ+4Qiam2buzacT7sOVB svTySllHcJGvKDMmLXw0pDrJNn7no9JLF1fVQheQ4rLnpIE4GJCqmvbmCSQR1xCznr4xi4yp+ 9hWRtKFXpWjx+WqN0jH9nm0QisAfAstLsRSo11ZxJnPxZY+y3s+LFod1pFxq/SI8iKCP2YCtU wYs2SuzjR7RvG5i4RCE9W86wOTfQx2+869e/ffimo0cqLHS/JFVQe/t8FYYLFFeumvL/dHxSw icvfFjP9oMJyp9jP+FT2YQZFz8S99HyMlA5tnswKOEJydwe14LDMrQX3coUAQnmxCV8fpETPc 8qLvoQXV/YTGkHIlwfuD3cbJQGAMT09WfNgzKb8vesLvf+nABrm07HQ5xXDYS8/pNhdFcszN3 for6/RnXlaFIw8IrakD1LR7SMb55y6eRoDh+f1RkQkvamJJ8cfQO4KiVkLUuqWrFhvdyTySvU QzUG6CCP78hsAODemukTtMWtlyzUm8OZXh3eEcZz63j8UprjujOyI3jPu7851h5MEy3k8fG7M c/m3JNQS0lO9DwNJic/LY4d3vCFDJ/woItYZ5tTuC38a4yDJiXmT9lrI00gOUAEcCSuGl0sGN FQUGu+jsF434wofSqZOWy7dMN2DRCQqWBRTiAg== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-spear-spics.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-spear-spics.c b/drivers/gpio/gpio-spear-spics.c index 6eca531..efb99f0 100644 --- a/drivers/gpio/gpio-spear-spics.c +++ b/drivers/gpio/gpio-spear-spics.c @@ -189,9 +189,4 @@ static int spics_gpio_probe(struct platform_device *pdev) .of_match_table = spics_gpio_of_match, }, }; - -static int __init spics_gpio_init(void) -{ - return platform_driver_register(&spics_gpio_driver); -} -subsys_initcall(spics_gpio_init); +subsys_platform_driver(spics_gpio_driver); From patchwork Mon Jun 17 18:40: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: 11000171 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 7016314DB for ; Mon, 17 Jun 2019 18:43:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6413B286DA for ; Mon, 17 Jun 2019 18:43:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57833289B8; Mon, 17 Jun 2019 18:43:50 +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 04529286DA for ; Mon, 17 Jun 2019 18:43:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728808AbfFQSlz (ORCPT ); Mon, 17 Jun 2019 14:41:55 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:58913 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728799AbfFQSly (ORCPT ); Mon, 17 Jun 2019 14:41:54 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MRTEp-1hxThR0fuX-00NOxf; Mon, 17 Jun 2019 20:41:40 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 11/30] drivers: gpio: stmpe: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:52 +0200 Message-Id: <1560796871-18560-11-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:7YUAmuuIb36tOmML+CuZG3gueQCIO11o+yMbjFCLCRWDWJnjITO EE2RrNvSLPil8KexSJ6NLygnc/2xNpY1/8+ZW3xXQxoHinWM1O6n6e5lAa/iUJ8KKJWaS1V aaAtHjPoGIi7q4vqIjXnzKdFH0Rf+r8InWPpZ9fCdT4lt337pcEEzclqjiAMrAtuJMsPXOC A5iBq7ujXBkwYMlBHLknQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:1vqbZGDS+eg=:nLGYJ+RktPeqACPzOrNBld OQBpWBTICAbRKNgWfqwP88ppIfh2N5aoF34MyGT798E9107cfm+tYBEaRv++qptby75DBfjO9 o3p1tuiHmJRV3ROCUT2Sux0+XdJUmJX9OBCUQYJWeCljwqTGcivBarCQg1SpmSPJNidY6b50R +m2wGGo5d3HUR3CbZXncRUP20zH9JzxpKguv8gWvjVFzKNji9Ibh1NQ/AjWZP8JJvgQAAyR7+ 9lUf39AUizOInqywLyJKeA7NJWTKJA9BEczCm3VuPBOTzxKvv8JUfnDqzQV6t8pisl/bDzTdg TMhOeQzTEyvh8gRyiqcGCyvnMJQeX9MiZOLpA08Ce24YfKNAQynexzfKTWw7krTr1EVNwRP6V I8tBvqfX9k/ptCfSUBcJ/fzUQDwgDRVaMsXXj/OUKVzAgD3PVAZDvi8GPLmwBIgAzwQxWBFmq rk4R/nof4WUW3JyStnSNpE0VlMxB/qQ2PQNsaZLEglxOi3GQlx3rIEYU8NvRs/XyTaR28Wt0H Lz3yFqL0Rt6KpFjoPwPUqBwAAcWFDzSUdIIRPj09hDv5JZl4R4w7l2/UW58ejoRNQ9y2p8EWt nVu9vPm9KiD0BEZFT9PsmRrPi4CQRpJD62rjtuuuCaVr4l3d99IniyQbGf2pA8+VtzuiLNNk6 taexxYgfa4jTqNNlzE61CLQcugUZLmr2ykalHhRjAEoX4dQzCRcDfvia7iwTyWkExYpMdt3g8 gnzYYaMAuj3kqcdPd1dV62pxtiTNrV9N0Nfucw== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-stmpe.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c index 65a2315..bb34f34 100644 --- a/drivers/gpio/gpio-stmpe.c +++ b/drivers/gpio/gpio-stmpe.c @@ -530,9 +530,4 @@ static int stmpe_gpio_probe(struct platform_device *pdev) }, .probe = stmpe_gpio_probe, }; - -static int __init stmpe_gpio_init(void) -{ - return platform_driver_register(&stmpe_gpio_driver); -} -subsys_initcall(stmpe_gpio_init); +subsys_platform_driver(stmpe_gpio_driver); From patchwork Mon Jun 17 18:40: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: 11000157 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 B4C5E14DB for ; Mon, 17 Jun 2019 18:43:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB2BF286DA for ; Mon, 17 Jun 2019 18:43:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9ED29289B8; Mon, 17 Jun 2019 18:43: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=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 464FC286DA for ; Mon, 17 Jun 2019 18:43:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728840AbfFQSmG (ORCPT ); Mon, 17 Jun 2019 14:42:06 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:53437 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726331AbfFQSmF (ORCPT ); Mon, 17 Jun 2019 14:42:05 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MjSHc-1iMTao45Na-00kzYa; Mon, 17 Jun 2019 20:41:41 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 12/30] drivers: gpio: stp-xway: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:53 +0200 Message-Id: <1560796871-18560-12-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:dT3uRABFS0LCiG7s1U7q3nGf/2a0ASckiTEOKLXOYnnfgA7OHZB khNvDFh0WSuZo3sx9EzH1v4pwUtmCnUx8+yZKGS92xqtasNDk2YCaGg6b8IKhHzYuxexo0Y wHC38Ds5/US63cBfXEJJPg/iR8aNjOxE1scwYrl4MmNLk7SHxanRyG+5o8nBaJtDHdpx+BT 0j4p24g1uWpb7eoKGmCJw== X-UI-Out-Filterresults: notjunk:1;V03:K0:ECsY8i4iHY8=:2q+L124zG9xrKP0LAEPhfN ASqnqFzsop8gYZmbgo53tw4T7qDXMVzNza/v/SgvoB5hR3VjvafiXE3KJ2dxb3H97ZQpNInBC tGPGo0npikJGvGe8o2vDzCqz+gjAhvXbHRRINPa9+Vz60vMKvyju/CEAp91aynkCSVj4Gk6am GpjIvOUsjYrcox4Y3Wx1Sud0BLcdLsY7qG4tCG1cyo32QyvaRQmzLNDXfiYMlkOBCKP1zJzMG vPrk88Rf8ZJhE35kMaRrU3cNh2GdhiDdEpJxTUznct9kYErfrRLQVlmjAyKeDM9NCGnFvTtTp y+YOTvf27NmEukQXOWnB33QlkQxYLFp0f+IHWgJ1w2qxfP6QnIUX1dLZGQQwUBKdjACmqN7ry W4/81AzT3L0rO6A1BD3hm218J9/X68t0RTBrsR9fULKK5srwkDHYm3+IUFZKvft+UxJ0ljIt9 k/OaXy4RCaXzQqFtZ36EatNgWfQ5AX30/uw2ZhUSzLbRD5hZJ3JlIGdZ5L21DbpKJi2TFzd5t GIDgSCl2QNrbsGjaIpSupzc8pzb40iDDs+KPOYCiiURS8W3hPm8DNtX+9mgLbLWblgn0Z4c/A dOVzS/882Wouf8O0mllLBwYdnFlS5AmZ39NoBVSgfGdLGLqO+yDGWX+5pJGqgeYdwP+XIoWVs Uoh7idNLZnKDperYhzCo1z4iCWLyytrL63GNKDzAY3wzZ60UhH0TNUomkbKTejeqwmqibb/er 5zvmMAC9BX/3J93ZTT75W26IWeW8//4afUl4Kg== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-stp-xway.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-stp-xway.c b/drivers/gpio/gpio-stp-xway.c index 8a319d5..3f5c039 100644 --- a/drivers/gpio/gpio-stp-xway.c +++ b/drivers/gpio/gpio-stp-xway.c @@ -291,10 +291,4 @@ static int xway_stp_probe(struct platform_device *pdev) .of_match_table = xway_stp_match, }, }; - -static int __init xway_stp_init(void) -{ - return platform_driver_register(&xway_stp_driver); -} - -subsys_initcall(xway_stp_init); +subsys_platform_driver(xway_stp_driver); From patchwork Mon Jun 17 18:40: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: 11000169 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 1972914DB for ; Mon, 17 Jun 2019 18:43:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 107D7286DA for ; Mon, 17 Jun 2019 18:43:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04F15289CA; Mon, 17 Jun 2019 18:43: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 B554F289B8 for ; Mon, 17 Jun 2019 18:43:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728816AbfFQSnk (ORCPT ); Mon, 17 Jun 2019 14:43:40 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:41707 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728803AbfFQSlz (ORCPT ); Mon, 17 Jun 2019 14:41:55 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MspyA-1iVizF3GJ6-00t8ju; Mon, 17 Jun 2019 20:41:41 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 13/30] drivers: gpio: tc3589x: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:54 +0200 Message-Id: <1560796871-18560-13-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:KrVoP4vjl12gjhS5mZN4JRyOMm71/rHFm+seF2fjW4HDqMnyA9z i7/gWIp0+QdEp5YTxyI8hlSXO8VoSehUm8jDuoy3yxjiIP2CVIJCStEdhnwwmFg77oSrTSG 5n+uVdYAylSYyNCOmi0LGjs41PbzjT4S+fEV9iTzA5JjEBNvwpGFPUPya5r4S1fYyqQ2ePU wqvICV1/74+gsSDJ/I1CA== X-UI-Out-Filterresults: notjunk:1;V03:K0:f5YSQ2fpssk=:HnhA79MjR0QcrbOrYV1JVh uxh0ML8XxUgT9uiqtti1WOKznAsttBP4Cifx9lW92Sv3yrqv0eeOtqFdDqM9ckD1GqP9bAW2j lZBirmVJHM3a8gYeT7OcuUIVh9voP9b6OvhCaUStZ/adHDgyn627UP9CqtU6+54xsIgWmkbxd HjhHwoio0TDWtlbNGfFrcrsXdBYnNk9EhQ1a8CGYQPD9ygFutqGJPoD6rUkzHiTX6W9gxxc+z BuArCrJRCZGknjvV/Gthm6zws0KU+YGx9b2tumusBKMp8MbT+H9ooy6faqniOZFLNpf10zuB1 6cJnkfLs5FFOJfCx+NF9BFOmpxCoQjBa45d/9lNU7mwFsLhht7nKPvqcDbaAwu9186j1vhYQO UnJCk7lJBIQu0fnhyNpQf0nABRPxXxHtngyOfw1Ph0uU88YnZqNRhonCM85qp26cLqhpdpzeo S5I9XC4xyMR+2q4gbjTqFIut0k8qU5oSsd4J/MwtmMxjn49Fidrmwg6OCuHh2xpcHkRmuA3IG m+0VWfAuMXuAAVid1PB5L/yfzf9WiL5bocvOc85FdeXoVnL9Cn8qu0hFupCjc5+kzHLVIVhNX 9/RF9SnsSIBa9itwpxrG2pgeBQ7jlApqZoWib+ofiO3dDJ/3myaKyvPwnWa8ro1dsxkIpq4mW ZGBaxzvScEF+jiwWGIOCMHHz9JGoq75jj1ED0aS9Cc2K6hcT0+fGNLR7IOtA6AJ3ALEJXct5X 1HDbVk7VaXfyvClN5Mr5vlizaGCw73bxlpOAzw== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-tc3589x.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-tc3589x.c b/drivers/gpio/gpio-tc3589x.c index 91a8ef8..8084698 100644 --- a/drivers/gpio/gpio-tc3589x.c +++ b/drivers/gpio/gpio-tc3589x.c @@ -360,9 +360,4 @@ static int tc3589x_gpio_probe(struct platform_device *pdev) .driver.name = "tc3589x-gpio", .probe = tc3589x_gpio_probe, }; - -static int __init tc3589x_gpio_init(void) -{ - return platform_driver_register(&tc3589x_gpio_driver); -} -subsys_initcall(tc3589x_gpio_init); +subsys_platform_driver(tc3589x_gpio_driver); From patchwork Mon Jun 17 18:40: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: 11000129 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 271DF14DB for ; Mon, 17 Jun 2019 18:42:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1AD722881E for ; Mon, 17 Jun 2019 18:42:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F5E428841; Mon, 17 Jun 2019 18:42:09 +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 B2EEB2881E for ; Mon, 17 Jun 2019 18:42:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728878AbfFQSmH (ORCPT ); Mon, 17 Jun 2019 14:42:07 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:42179 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfFQSmH (ORCPT ); Mon, 17 Jun 2019 14:42:07 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Ml6i2-1iLvMQ2UcG-00lXWM; Mon, 17 Jun 2019 20:41:42 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 14/30] drivers: gpio: tegra: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:55 +0200 Message-Id: <1560796871-18560-14-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:iFWiFhcYYknd8StHR0u9aUbJBaXirauv2momRMOH7CEVwyMmx34 F0l7McvrGvTC3Tk9IIRlhq6Kz/xKu4B+whDU+xz1oDXmlYyrhUBmn9Xd+gVAYCtjDrtGqbq YMFRFB7T1mdVpmBy9cVgwsFX2uBvUg4dN0QpAcJfeweS5L5xWd69Ea1ovRNgkIjEj9ZWsjK hRug8LBucbaIPEwK2RDwA== X-UI-Out-Filterresults: notjunk:1;V03:K0:MJF7R8WTciA=:lVbBIPtwsBX3b1/G7FtOCr z3iDG6hXs6Tt2d2Te1Ni5ppc2unqhQog5Z2JC4cSA94rOsQIiFOA9Hs2akHuDb9jabFMWwH5N KFkrEPEOCRqWrlFv4CF7e+7OkzbGc2LYVrsg58pkoR/hbX9YSg2v4puyup4nozYBFXDKNuglI Shm1AT9ZU7pOmnU/uS72TD+PFxeFbzAVhFr32dm6BpsYIDSWFf0rO3Nhjr0poXfCg+PZ+LuIS PL4axpw93zv5Ntrd+mux/LUlNbpOfxnOVM5Yw83zUsymHRxpoGad4MOvzhCB7SOkYJ2DyxYPI xfCUg1l6QIJs/tK/+ZTcMFH4UiAsfTT/OTdWCAz/Ar8w7ytU0mNcbCWHSKh2yTGbwf0thtEWJ d0JxCP8Bik164oXB05YbZtDLUqaDz/SLhOJShnjnHRqF7QcL6bvb5RyHhyzvMXWSDe7OUil54 4xmus9AKHDrxrS2EKH5OY9vEvE44MA5wLr+mqVfkfwQF8GoPW9dsUzifERSr5ytVuAHZsiShf B8TcHwpufpPmAIJkVsaSHPtIe43d1IzAcpezC1WebEm/B5cX3ie7xXrxZZQUOkIK3E1R94Rwb pRf0+ABCoc0jwrdpWDO0wGTqUbg05baZcDDLsXsHxeJTWquNqd25ChkS7Ai4RovYP76JrODM0 e0maYvSYe3T/yZYjAl2vLTEgcjXzojAenTb4W2uBsUzqluvrmEZ03ZxrIPpeaXyWzpVEQuuOj mG9hwPZqHoI2DRReazXLXGIpNQfdjzFY71uHxA== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-tegra.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index f57bfc0..64dbba4 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -711,9 +711,4 @@ static int tegra_gpio_probe(struct platform_device *pdev) }, .probe = tegra_gpio_probe, }; - -static int __init tegra_gpio_init(void) -{ - return platform_driver_register(&tegra_gpio_driver); -} -subsys_initcall(tegra_gpio_init); +subsys_platform_driver(tegra_gpio_driver); From patchwork Mon Jun 17 18:40: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: 11000165 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 CB8C314DB for ; Mon, 17 Jun 2019 18:43:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1A332881E for ; Mon, 17 Jun 2019 18:43:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3399289C9; Mon, 17 Jun 2019 18:43:38 +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 68582289BA for ; Mon, 17 Jun 2019 18:43:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728776AbfFQSna (ORCPT ); Mon, 17 Jun 2019 14:43:30 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:56949 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728691AbfFQSl5 (ORCPT ); Mon, 17 Jun 2019 14:41:57 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MnJdC-1iJjV53YXs-00jLfG; Mon, 17 Jun 2019 20:41:43 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 15/30] drivers: gpio: tps6586x: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:56 +0200 Message-Id: <1560796871-18560-15-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:qKwzpuqgoNiBk70+PbpO/q0x0KY+ySxWp9cR8SnTejgI5QoqMFa oLeLwb1gqAmg4mU3A7BWnd9S6/IFmKSCJm/Ozd4/97DFdS9iJw8lCN44gl2f2aZTID2KN3x YV9q5hFSfUkRdVQyPBJ5IKvaUei3ah8ksa36aCwx4M6tzhIi1VNeK1/mxKQOFLi3+vL8XWb L5Td7lDeu6Sy5PS+Oavjg== X-UI-Out-Filterresults: notjunk:1;V03:K0:9omeeGzECNA=:ra+/juBGEHcZ37DeNlQ49G rSbMDrnWJ0rPQpqpJ3tFdAAH/CulVNRYeHFQ9/SEa3BaNur9BPHUkeuaoFWwINkD2c/GV8xNU a86BJXIH2rTbCjCsOWcck1mLhD4yOeqOzxGU1HMCxwIOvT6r5oJ+xdDSmCM7PeI8tHywRWxiy GKneMAhOmeDmmFZeSLX1dGqFnyloM2zFvEPgP0ueoKjyQJszlnxIZ/bahIMoAfUVnOkYqEDhK 7jtXW3rVhvr20Eq1zq98mgrdY2SouJvSssnYiItlqmXIQON8x/OGfp+icpmAarWtz5QMhCsnJ MLq+qGYYZ0M0CgQ5Ufn/AfkhzkNdyOu4j+g+RyCCEwqC39YOqVz5RFbvAcUMXy5JvNexJZQ+6 VqmtoJNmfNC6n5+JaBiSrF6ssltxsZ1ZcZOrfh2CsCK4UPMwAZ/9DAppLtcLuBBpwzva9uUBe NHr4E4ZmD/pgaTQmFjqkMwaLRnMGMVnj/aEvoyTv4z1b4H/Kowra08gzkNvAXnkTB7dtWryaq cXAmMYR4tmbMPDaYGLpZIH8tYaJEn1rpIuuLxA9OeFvDnw74vvVj8ecjNnT9juY/dGs8G5z4e A3VVllS3k3J9G/CaiZYHzXGkRDrgZ1UiNl40q7j087MuUebOeDI31JuHPIgYasiIVkFqqZes5 l7+r0CSd/eMDRTczl7aYWyYH7BMzIOliDC//M4jC/1b+YQPnHEeKDS3XY+ZcTAhpXejQZUMBK AqwnLneVu8XwP7hEuAR72gUiulwMyLn53ccfJg== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-tps6586x.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-tps6586x.c b/drivers/gpio/gpio-tps6586x.c index 9b6cc74..8f75718 100644 --- a/drivers/gpio/gpio-tps6586x.c +++ b/drivers/gpio/gpio-tps6586x.c @@ -122,9 +122,4 @@ static int tps6586x_gpio_probe(struct platform_device *pdev) .driver.name = "tps6586x-gpio", .probe = tps6586x_gpio_probe, }; - -static int __init tps6586x_gpio_init(void) -{ - return platform_driver_register(&tps6586x_gpio_driver); -} -subsys_initcall(tps6586x_gpio_init); +subsys_platform_driver(tps6586x_gpio_driver); From patchwork Mon Jun 17 18:40: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: 11000131 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 ADAC5112C for ; Mon, 17 Jun 2019 18:42:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2BE228841 for ; Mon, 17 Jun 2019 18:42:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 971C6289C7; Mon, 17 Jun 2019 18:42: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=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 4AD1F28841 for ; Mon, 17 Jun 2019 18:42:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728901AbfFQSmM (ORCPT ); Mon, 17 Jun 2019 14:42:12 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:59295 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728898AbfFQSmL (ORCPT ); Mon, 17 Jun 2019 14:42:11 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MMoXC-1htMxo3zl6-00Ihze; Mon, 17 Jun 2019 20:41:45 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 16/30] drivers: gpio: tps65910: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:57 +0200 Message-Id: <1560796871-18560-16-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:yRCd7FPD6XjAvKCP3tjNf2xZyvbH9nrLgWbh0O3MsE8jvt4UPIJ nrbE/gI1wH1Q+myNlT9NjmlsFRsO6aTuyVKm2IQFl00CR1lcykUeEYfD8tjCZKpeNtpUPr0 96VVXmkHN2YmthYwaA4ZmN7amD19jRxvMgB24idoHK0nBaNVnprQjsBS8bbGcpyKXgalrjB b4OBBeVUuCUXCgTnmmAdg== X-UI-Out-Filterresults: notjunk:1;V03:K0:HnN9qHWYfXk=:REvvrSHdUd52Afrt5r7uYg OJWFEPiuerA41T9E3uF8emq2llDVWnGX3L+KGNAl1kthauq3lP8r0hsAkZhovyQSo2gzM/voC VTCLs5+XW8gvlhPPcnLZ+pFfBKCapfncdPJBDF1Gd3/Kd07b1DkERPZxazqdFEhyX1DfXbW5Z OQC/vm5sgHaw+mqH+CC72lJTOKZeFw8SgGccXZvLqI60hFcFnFfUOp3PAAUCwbR8KJBMWkr3G nO3+RQMRL1WT7bBmWLO1iKozQ8Hic7FFrukSVmIcCwFMx8fhAu6McYUk+hsFkSfXBzYu3kba1 QvPzn0KG2NBPF1dIulIypKN0Xk8Opq+jCDltES+2n1UASUysSTNrUj2/wKBkxXOeBzW4qs0mz BL7/vMnAh+X/Ftwr6j+vcAiXH7SLCYLz1h5RmIYS2lXBGAogRPT1ONSwGykWyoPNHOxXOyXez nw7KoL0mpJllmxGQ4mCxsZQ4wRp8hEn7HE2l26OJpaR3LKOkAuaKC/YidAwqcXXStjP2WTEAo pm73RhmXvs9RezXE3h4yIWEqcmJAAyV8an0fCYpRsIcNG4es7QZai4PNXp5Wm0JqC9+Gn2hAO EIHdh3tDDwAPzScPu1iH9AO2DO7UI9VIqEL0MgBEAMzuFqx0F1hGhkT3uUCum6RJvTerTVExl FDvlT5a/Dd4g+EyeZtyFk1VYvO+sCctZRcOL5EjCN679j/4d10R2jfywzdeC+sJsUWThtR79D tnePzU8PewkCecSJ6ZBRs0Eig8N1NCuKr1NAdw== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-tps65910.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-tps65910.c b/drivers/gpio/gpio-tps65910.c index 0c785b0..c618cd2 100644 --- a/drivers/gpio/gpio-tps65910.c +++ b/drivers/gpio/gpio-tps65910.c @@ -181,9 +181,4 @@ static int tps65910_gpio_probe(struct platform_device *pdev) .driver.name = "tps65910-gpio", .probe = tps65910_gpio_probe, }; - -static int __init tps65910_gpio_init(void) -{ - return platform_driver_register(&tps65910_gpio_driver); -} -subsys_initcall(tps65910_gpio_init); +subsys_platform_driver(tps65910_gpio_driver); From patchwork Mon Jun 17 18:40: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: 11000163 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 6B57814DB for ; Mon, 17 Jun 2019 18:43:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EC3B289C7 for ; Mon, 17 Jun 2019 18:43:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50ED2289C9; Mon, 17 Jun 2019 18:43: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 08E62289D1 for ; Mon, 17 Jun 2019 18:43:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726001AbfFQSnY (ORCPT ); Mon, 17 Jun 2019 14:43:24 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:36169 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728829AbfFQSl7 (ORCPT ); Mon, 17 Jun 2019 14:41:59 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MV6G0-1i1eQB3wpy-00S5f6; Mon, 17 Jun 2019 20:41:46 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 17/30] drivers: gpio: twl4030: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:58 +0200 Message-Id: <1560796871-18560-17-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:6h1ie7eICxYmU6Y5CiT5Tc3+IJDhPWvoYpt1jRu50qNzLd6UPAP stcXFTdT4A2zB7A2Kh6IWZSrm4sQZJar+8J454KgqhNMbHwuVe2IKXNlSEfw9OshUC3E+82 W9SeQ+m/ih4xZIGm30ZlqYY9sI6mCcDhSR0e/CSRnDotAsjxJx7d+xcDvmDkb4aGVAz8/vZ K8Y68ow7D7s5GAg8D+Ysw== X-UI-Out-Filterresults: notjunk:1;V03:K0:sUhDXB3tx3s=:J+X9AEmECvzP1W9+WPVEgQ naDmQ+MYiNXeHyN78Ot3D8mmC9xcot+i47Qs8q0mLFOlvlCO1DKPOQTe+GmqA9qMGVXfQQj36 nVEtfiIO8t1mtSXsutm8M75OfRwPBKps8PgRtSYl/UhOQ9+zEwyEnqqN8gzsADR3JRTAFWF2m ptPahmrHC2kuwLVeBJvzB99vd1GXfIl+pGxQGmMZ+j62nQ2Uo9QJ6BI2wsCXvsJE2HKOIKKVw JqqVwkQtu+GBU1UyCFBaeDYa4tslac9OoJS02bzzoAxajA9JqK5zkaNzubaaahul1LxdSTzG6 ctmx0jzPCh2lq7XTFcARvtvQ6Yqjzg3bHCCJhwsKnrZs0z1ghVNDGLnSe0Y2YypoITdQIlhTG cBLUrYvEXejxWoay1Tl2Md4WOdUegsVrnQoW4XcivxgReSr/JsFp/tX/dlS2XTB5+JlqnuUDl 2q4dg0ev0vJtMBmTONh3X82Cj/bRZ1d7ct7sOZZFDtQPP30+epkG9iSCkXPJTDNvH5C4simfH UZ7X/6eXktItvMU0xeQ4yzdGBTaRdXuh7T+Pzt5M8FrkdscIy5gtotf6G6/GM83FZgx/iDiSp 7JyljriOUZ3wmhSrAQF3urZ27Rt315HYRwpF8Tg41EeFFMtAWzyCqQIAbKr96pk80XWG6NKWR s21zwYMopq8j7HhEMuKWeq4qpWKDoOM5AaWwNQpnpUd55eia9yFw/xslyt9LfzVxZfAzeIw6I 6Y0dvyOvXw+rb0wzRDYe2+q6u+VVqE4RSpINcVEv0Mt0rQ/sD9zBJnC6t28c4Mv9XX4wTUVqv 9jMzkCsyaFbhV7uqScEFE4MDesNFBX1WkwoE/uGoZiUBXQOxFX8Bjm4N8y3lmSePQZ6ptJBf+ JQ01wiU61DgyICIRuqMYKGGWevmyq43PwjhdX2hN8zQFqP4z1msrron8yGtzLXxyfmg+qq4Fm jOfC/Htoozg== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-twl4030.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-twl4030.c b/drivers/gpio/gpio-twl4030.c index fbfb648..0c9a86f 100644 --- a/drivers/gpio/gpio-twl4030.c +++ b/drivers/gpio/gpio-twl4030.c @@ -633,18 +633,7 @@ static int gpio_twl4030_remove(struct platform_device *pdev) .probe = gpio_twl4030_probe, .remove = gpio_twl4030_remove, }; - -static int __init gpio_twl4030_init(void) -{ - return platform_driver_register(&gpio_twl4030_driver); -} -subsys_initcall(gpio_twl4030_init); - -static void __exit gpio_twl4030_exit(void) -{ - platform_driver_unregister(&gpio_twl4030_driver); -} -module_exit(gpio_twl4030_exit); +subsys_platform_driver(gpio_twl4030_driver); MODULE_AUTHOR("Texas Instruments, Inc."); MODULE_DESCRIPTION("GPIO interface for TWL4030"); From patchwork Mon Jun 17 18:40: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: 11000167 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 B4793112C for ; Mon, 17 Jun 2019 18:43:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8BA92881E for ; Mon, 17 Jun 2019 18:43:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C330289C7; Mon, 17 Jun 2019 18:43: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=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 4E6B02881E for ; Mon, 17 Jun 2019 18:43:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728676AbfFQSna (ORCPT ); Mon, 17 Jun 2019 14:43:30 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:45443 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728823AbfFQSl6 (ORCPT ); Mon, 17 Jun 2019 14:41:58 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MHX3X-1hpt0735LV-00Dbt1; Mon, 17 Jun 2019 20:41:46 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 18/30] drivers: gpio: wm831x: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:40:59 +0200 Message-Id: <1560796871-18560-18-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:cIJmwh8Fqe5ge2cqLl0OEcm2AfuQvFOuJuC40AopX2Uy5NlZcOV ptF0Qp/nFJoffsibMdw9bHInU+1RjsT/UxHVrHzXnOh+3jKr2pBdEJjzN1AsyIaqVaO9kO2 +jl3P2klcyI0sl8xMAvANrxLfZAnUI1ZkH+VVRLh+6kLKL/0Ac4lVb8Iu0Mcwu1ZQ6mVLRY KWE31PMGaiLk8Kv+Q0q/w== X-UI-Out-Filterresults: notjunk:1;V03:K0:nxqJ6QeYYzM=:D3p8zJGFDUnlY/kO1UXwlb 10uZqbve6l74U9+uzb+B6rhLGhF2Vf9ObOwvU7x5m9HlQf5W28teHMsm262GgjMa+yN3IziRg vHkHFyeSo0C3yUFe8TE2F7VtLU8TIsrcOZgUT2/5JKCNnTf4xaZndgvDG0+b7olMqt8MReFrl /iaFz7rgMkDHA4Ay//B/W6GrjRfC6/C1SKgHp6vMJlN3dwET93Zu+Zxkb0v4OBmf+wb+P2OkR pO9qlzfEjGiZyL+UQZbah1Dmxox8jRhwrs/bhfqNSePydIJy8LBaNjYqGlcc2nDcXyCaDq8PG QdiyTXQo1WuZC69Bcd4c6rG8IsORYkGmk1MBSe/5cdB68dHN9qZpWN4shXLDGP1pEty1tKYeq SOu8bEuZsRdvBsFEe5QsgECxgfRP4SVCXHGbBzv9xMj2XvOhg/NG+6D20a/VsPebAmntQo0LY xAyT6PNHRPGZw38gGaxfwdXkKzKEXpI3O9q+o5dIZE7rw+p0qsw6Vq3HEQETiRS926/atKdOA Exnf91c2pcbmemkln5799w4piR3K9Gz2sfzeTSEc9pcLuwUOae5DAApUSuWDq4H1xGalivBmv yKwZdCru6ZDqvW8Vwp5ye+Q7xXGEQoFysx7s2UhwMjN+v2KvQrFgdBmqAkZ10BopUn/R1aNvy 97poPvr160S9g+d3Kj5XSgBq/lLXoR1o1XgFUvLIcG1guclpK1m0hIYFxYiMU7lPqdfl70+3m kH0Sw/lU7YJSROo84gUJQ8VZGcXcHo0MjC4O+NLesCzHc0lKY8QBRSN2h++xbvMEGg2Si1CMm ruSpI+hhTuYCKEOntz5HauQoBpRiVVCO4sEXUHp3yWmVoKQA8N52+VsaKQr0fyuZYB7EPSAAF sUUrl+MDWCk7Lh2xFQLJ2gTYaAgrWk1N411mK2NH+gILRk3YWYjVTcF0nQm0l2KKFPOERcBPO 2fgJZmq+13w== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-wm831x.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-wm831x.c b/drivers/gpio/gpio-wm831x.c index a3a32a7..324f811 100644 --- a/drivers/gpio/gpio-wm831x.c +++ b/drivers/gpio/gpio-wm831x.c @@ -296,18 +296,7 @@ static int wm831x_gpio_probe(struct platform_device *pdev) .driver.name = "wm831x-gpio", .probe = wm831x_gpio_probe, }; - -static int __init wm831x_gpio_init(void) -{ - return platform_driver_register(&wm831x_gpio_driver); -} -subsys_initcall(wm831x_gpio_init); - -static void __exit wm831x_gpio_exit(void) -{ - platform_driver_unregister(&wm831x_gpio_driver); -} -module_exit(wm831x_gpio_exit); +subsys_platform_driver(wm831x_gpio_driver); MODULE_AUTHOR("Mark Brown "); MODULE_DESCRIPTION("GPIO interface for WM831x PMICs"); From patchwork Mon Jun 17 18:41: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: 11000159 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 EEAC0112C for ; Mon, 17 Jun 2019 18:43:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E314A2881E for ; Mon, 17 Jun 2019 18:43:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6F98289BA; Mon, 17 Jun 2019 18:43: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 890742881E for ; Mon, 17 Jun 2019 18:43:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727000AbfFQSmB (ORCPT ); Mon, 17 Jun 2019 14:42:01 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:36965 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728840AbfFQSmB (ORCPT ); Mon, 17 Jun 2019 14:42:01 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MuluP-1iShui2LER-00rlxl; Mon, 17 Jun 2019 20:41:47 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 19/30] drivers: gpio: wm8350: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:41:00 +0200 Message-Id: <1560796871-18560-19-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:wLzkRuXKotLF2WaM3fpevEX0AxLNyeHRx9VsRrdtbrQDkAKGIih 9kPBVP670wqyAqFmtgNWb+oATCjh5SLYlQGG6HqiVvtvzpTPyLm5PgfIdcoDctZ2gDTG47F 4JZE1EQu7x3voQ/c6J41SBAwBbH54AXL9UbbhV65kBP0g0YOl4G3rRutVgfr+VFQxQl98kn 3api/IhKX8mxlKBu1kbrQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:v+FzUkdU2rk=:4UibfO1F8mHTcl5gJhosWO L4kyyKtB7fuMjtVO9R2EPVP+JwoB/jxBMNS+5IWxUHi539sKS67bHyFRhDVzSlEOM7ruQpCWb BI0/d/4Saf9LR9uX9WsqJOjQzjKmh4KuQ6LewJyAoQNKnC5enDdzVWmWPC0gcR6+guX0B1gGc R4SFnjS55yTgDPUFprg3ZczzGA5FayYuYZMM6OgQtMR+X8Xr+yVwv2pOk3hrKthJ0FmhfYBjp lh8DN1w8Zwe61dDv53HUV87A7Sj76pHuVWkXf/EJtq0Fe3IePJhM6/sMmTN4p0Pcy13CznxY6 NLHjO2KJYeCVDB8iumUHYXZMAJfRztzj011H4A6DwffCZTf0M6QfP3EC6+b7fS07E/NQFK/MS IiHxNxzfEKsOIniUmfbEeR5jGZMQhr7eoJmT6wdtqQwaKCEKpqp8pXtk0P0Jud4gwfM268AmV Afnwvoxr/7bmIWwTNfpI+ACqN8snUTjRRKzmprtpDbZM4QX/WqJmy0+ljxt2HFfAM68wvofwY 5H22qVzj1CuH1ckNK0GJW/XQ2AkyjeS4Dsl2Ie7B4Hndu4u8UHh57jV5ZJu1Guxg8N1sevIe6 0h4LimDbIZb1lX0SfHhUhdNSgSQKk2gDUret7Ge+wKUGgo2sy4x3N0PQTP4lB9K2n3SIX4Cpw goiFtMe+CyenolawmAT5YxRNJmWk8XVXchs5n8jIHr1nJwKxo4zZl7WgSQmOZOqfJBh6Szp9E Q/S6v2PHqYnRaWF1VLlhSc7JaxIVClMCpteOFAyCAU/1WQFF/LSvF+YG+q+4OQa4VEXGXp6/4 D5GfAJc4h021jZF0xyAa+Qjlnaw4NQiKX4od2FGF/vcXWHhhgE0UqLIwxl+FGmdFxfdHAYVv+ BZuz6BMQoo/xwTpS+Rvud/9MlxUx+ZX1q2IYVY8He5sBMVxY/z6JWEQr45BGJTnWNJisfdBbG /BnzXJombiw== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-wm8350.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-wm8350.c b/drivers/gpio/gpio-wm8350.c index 460f0a4..21a3191 100644 --- a/drivers/gpio/gpio-wm8350.c +++ b/drivers/gpio/gpio-wm8350.c @@ -137,18 +137,7 @@ static int wm8350_gpio_probe(struct platform_device *pdev) .driver.name = "wm8350-gpio", .probe = wm8350_gpio_probe, }; - -static int __init wm8350_gpio_init(void) -{ - return platform_driver_register(&wm8350_gpio_driver); -} -subsys_initcall(wm8350_gpio_init); - -static void __exit wm8350_gpio_exit(void) -{ - platform_driver_unregister(&wm8350_gpio_driver); -} -module_exit(wm8350_gpio_exit); +subsys_platform_driver(wm8350_gpio_driver); MODULE_AUTHOR("Mark Brown "); MODULE_DESCRIPTION("GPIO interface for WM8350 PMICs"); From patchwork Mon Jun 17 18:41: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: 11000155 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 8AC9314DB for ; Mon, 17 Jun 2019 18:43:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FF1428841 for ; Mon, 17 Jun 2019 18:43:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73C90289BA; Mon, 17 Jun 2019 18:43: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=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 19DC928841 for ; Mon, 17 Jun 2019 18:43:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729055AbfFQSnG (ORCPT ); Mon, 17 Jun 2019 14:43:06 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:48503 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbfFQSmS (ORCPT ); Mon, 17 Jun 2019 14:42:18 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MKbc2-1hvYpC0iuC-00Ktqk; Mon, 17 Jun 2019 20:42:02 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 20/30] drivers: gpio: wm8994: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:41:01 +0200 Message-Id: <1560796871-18560-20-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:pLNdmawIffiCHQrbod9BFFSHGoGtQwfKxyadnio7TVFPu1etlIZ kpNlfBy/TNxqX9C7n3M6Vh0yXfFYoeO3AGF7WfWkDJwsqaBOo327nq01hqQSUcp7UuNOzQE jbUrVqzqqvenQ9yiBAp8shSBHn5KZhB8BBMe6GTk26RqzKzO8WYUZSXr5ZDMjUVSBe1JfmD XvweC2TYSkottkmItC5DA== X-UI-Out-Filterresults: notjunk:1;V03:K0:OPduHIDdewQ=:cN8bB2S93txpA7kXiDwIdQ DP0l3mQMPiEmqFwBJQ0WNDnT8fZ6QQfYpoNLqh/H1cOeHtL0pHKN3oYDfEtzecoS3mF3/fK3x bO+mV0fG2rk1evu1PJMU3/oJx4KoNwIPIWDb1fugeE55BT0eSRoOzXRvo3d8wzs4odQLrWts4 +14akY3VEaVr1I/MwJfJ9wdKvmrWKh21WboORj55TfDVX76cUYAjAgsZGTykNzGTT19bzpVQS psgz4iqQjj2kDRrxtE32woF1LXMXfyAWF5rkSfSdzz8YRw1UhoZNT5GxmOjMgqwdpsrNAp7/R B0eooZIJ7Q5BTUNX6RGaEluZplKxF0mBz9KrQ0ThPAjA66859s05xZiyxJgEiqsNmXCPkDkFG Z6SkCjzXEWG6eFhVc5vStwya0rEmPI6myEkEacCiHyB4aLJM7lgi9LGksyDtmaoQR6kVSTFZo SpIKCslWfCUiWUOj9H2ZS3oUR3SUyOFgkEQ3UO51DcWWjiAehmsFa29SAE3+dW/diC93UnDWs /iV3vjYKVRotyXIwOKHvGWmdudP0Iw7oWHIjnZB9xnxYEC5NNPy7Vai+4Ect5RwN+g1JOKoU6 38pNeAzBN9QSl6akTXiKKeseAS9/Vbff53lCrqw5bezrSoHo8IPWZsWD3emFqN7ipsme16jBA H1iuVGbaQxbMkon/JA98nW9h+rHMCnQ+f2IG7H6h3Mi6trFYWjnQukzfkW8rrj9qpEuLR2qDe 5lYwdlzXExP+IRruurhUbX6i1HJyY4lUenhOCFZOoc/B7Xsg/oa7VLtM2AFI7HQ63HgK5fWXh s6hZZXhOBLOVFfPRFoKtKOA8+5PqEYaIDfky3Nukts7DvLRuKa87B4qQTJoUwk3uRTEdjqRiF dZwMAOb3omI15kxavj8jXD6gZk5gnB7QhwOIYhwl5bj3XNsBI/8jqm6DBUQwe26wl46h5jmtu VmGMur3UuZQ== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-wm8994.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-wm8994.c b/drivers/gpio/gpio-wm8994.c index 9af89cf..d9f4572 100644 --- a/drivers/gpio/gpio-wm8994.c +++ b/drivers/gpio/gpio-wm8994.c @@ -296,18 +296,7 @@ static int wm8994_gpio_probe(struct platform_device *pdev) .driver.name = "wm8994-gpio", .probe = wm8994_gpio_probe, }; - -static int __init wm8994_gpio_init(void) -{ - return platform_driver_register(&wm8994_gpio_driver); -} -subsys_initcall(wm8994_gpio_init); - -static void __exit wm8994_gpio_exit(void) -{ - platform_driver_unregister(&wm8994_gpio_driver); -} -module_exit(wm8994_gpio_exit); +subsys_platform_driver(wm8994_gpio_driver); MODULE_AUTHOR("Mark Brown "); MODULE_DESCRIPTION("GPIO interface for WM8994"); From patchwork Mon Jun 17 18:41: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: 11000151 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 6E33F14DB for ; Mon, 17 Jun 2019 18:43:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64CFA289C7 for ; Mon, 17 Jun 2019 18:43:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54D04286DA; Mon, 17 Jun 2019 18:43: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 0E2D5286DA for ; Mon, 17 Jun 2019 18:43:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726005AbfFQSnA (ORCPT ); Mon, 17 Jun 2019 14:43:00 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:56873 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728464AbfFQSmT (ORCPT ); Mon, 17 Jun 2019 14:42:19 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MMXYH-1hsXkr46gZ-00JX4b; Mon, 17 Jun 2019 20:42:03 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 21/30] drivers: gpio: xilinx: use subsys_platform_driver() Date: Mon, 17 Jun 2019 20:41:02 +0200 Message-Id: <1560796871-18560-21-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:jZQIPS/8kKBvumGOIeRZuEAZfBqep8NBgz3VKgJkgVxmn/2i+46 FLlq0UcVuWtpQwBDhlk7SchFPixQJXzIjLbhU4okNMK1xqofBeHvPHPLY1lvryE/VJUZ5yZ rFpaYvh8TKkLlrnF+mXC4fh2PSaSPmSDCBZyCL7J6azaRKrLrxVaVLNMWOPj9JBztB686W6 VQxIKEaVuwqplatFtFqTA== X-UI-Out-Filterresults: notjunk:1;V03:K0:WGfUmeSdphc=:LI3Ccf1BYHeuToQjrLXimx NJP/R+hDLf5AShTxNufrxU8XyW23qnVylQVOV4vn7kOkI/ReczOdNefOBEmyS8qETuDFgvkYu 90fVIssCcWjOYiJuWGnowlyh8HxdXfpxPEq9XDezHHKlqvZqLBds0F1i8ULidSzZCht0tOc5R 1q0HgfWRosnVn3veP6zRG6nIH3WgjjMlOflt7UspIPMfejjdaspEBZxkavKcUJkY+uYuD7Yo0 Mwg//qezX8gGfxU/Dhxw+j3vijeXjI5DAR0kyprJlGl6lKnPvAYGypZtksCR7k3xUw/iU5eXM RpWeJOfo9ULAchTpU/RcUUBLudJFEuz1xkJ4yQnb5242EndVJAofniOGO2MNec8BoQw7IYrza b8XbbQJg09Qw+PPpwMOq6b9WII6NQ078iI9P6m9FYDWcf32ZEOqb35UsZqkIx5N4LumcPepmI muHIEQbXV7R6opaMqvj4SzSoHgQtBdreSWJIYFCj0D7L+XpbeKTZLGPcTSm4n7f7ZYrY4jU3L fRmi8WVCVPtRdCv/DJyOhr9NucYmBlZqs5UNktJR6G7XrAu1xf+qc65aXy3fYOUiVQ4CCG3+b XfUqNTJuXstGwD6M4mAtari3bETGjNFS1XALzARL4X/okpDqlDEZxqSYi8+PTLz2WkTeGn79x K1GhG7Xk1LODkC1t/PZrA8tFn6+Whw7q+trhFotAPXFriX1B+An5Sq4asIKtTecYzv8NBFAgq t3ObVbdOcDOw3hw0GhdrSvYsRT6RQRUJqdzrZQ== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-xilinx.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-xilinx.c b/drivers/gpio/gpio-xilinx.c index 32944eb..255facc 100644 --- a/drivers/gpio/gpio-xilinx.c +++ b/drivers/gpio/gpio-xilinx.c @@ -376,19 +376,7 @@ static int xgpio_probe(struct platform_device *pdev) .of_match_table = xgpio_of_match, }, }; - -static int __init xgpio_init(void) -{ - return platform_driver_register(&xgpio_plat_driver); -} - -subsys_initcall(xgpio_init); - -static void __exit xgpio_exit(void) -{ - platform_driver_unregister(&xgpio_plat_driver); -} -module_exit(xgpio_exit); +subsys_platform_driver(xgpio_plat_driver); MODULE_AUTHOR("Xilinx, Inc."); MODULE_DESCRIPTION("Xilinx GPIO driver"); From patchwork Mon Jun 17 18:41: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: 11000133 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 41D9F112C for ; Mon, 17 Jun 2019 18:42:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 343FE28685 for ; Mon, 17 Jun 2019 18:42:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25ADD28538; Mon, 17 Jun 2019 18:42:23 +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 A7AA028685 for ; Mon, 17 Jun 2019 18:42:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728947AbfFQSmV (ORCPT ); Mon, 17 Jun 2019 14:42:21 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:33399 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728929AbfFQSmT (ORCPT ); Mon, 17 Jun 2019 14:42:19 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N0G5h-1iVzAa3H2l-00xHk9; Mon, 17 Jun 2019 20:42:03 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 22/30] drivers: gpio: em: use postcore_platform_driver() Date: Mon, 17 Jun 2019 20:41:03 +0200 Message-Id: <1560796871-18560-22-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:+XdyFKamGFWUFxEeDb6N68e30kmuta1qkOj7bQND+1fkqKnd3Cy va4HUJ8iu1/u0Fu0O2Oxm6ABjgPG1mXo+VlLjSrbBe0qfckPTug2IhG3xb61B3brYGMQ9wp DxtjcUlJn7GQR00z+CWCLXlJwkbuBAexBjV0piNOiJcQ8mv/G15iKL69YuHosSYE8Qjk3F9 UJCkn7fyFAX8S2LrAWhCw== X-UI-Out-Filterresults: notjunk:1;V03:K0:gcFXNkZP8ic=:BkVRsM0TzQA0vzTsksV/IA BnkI/ebLbVIaU5UHw6ZC0jgAAAlyHpnKYbNkjQRR5QkG5FClMxVB9RKiIj2n8QyFcCo5wJr76 6yqpacv9YnQgWBmrTwHPItHrYO0VsxsbucJMNYzMJ4ugBY+DbZlRTKe0tJI2uiGH5WxuPgdqk qIPsejPYGmyHrnknI9Yd7rBgaws7F0By6g4EVTkXpyAzPljDeeHMRzbeNFJC+GdkeOKrHgyZK L4NV0m7sUJO15tbCRtuonbyhv12SA/ycHni0fmfotq4oWav4nUPKcifbWseIBBZ+CsCGuRgOf 7XkzPl57gyeWHOkSy2vBiBVY4UBt/IjiihPwcGVoV0NMyA13JH8Tq8YBmiaDXq6RrZ11NO5ac onvjWA7yVW+0J3OMzXnmjoHdFjX3/3W/HK8Ls2j39sIAs0aDREP/RY8aUYhEoi9+4uPsYtJEq bZDu3qGSaC3PohJI6ARiN7+Qew0XkGllDSRLMk4O3Zm0mhFBPHA2CK47FbxuH3dYK4/i4MIsp 35fmssGD8MY8ezcNVgNZHveVNOC/J/an/LDtlDgsBBcKPM/mrOYy5VLmseIN08AYGsS92ouub Y6M/XiJQ6jrY13zblbYyxF1bBwQ5F3bdshcrUehxinm6H0CK8zsoQAeVdJoaz8Poh8CUR24FH O8Jkwsq05vHIhMQ57J3wP3eoKBPh8emGs6GRKaL9W/NF+DUYUXkeWOUhEWJ75Fa++8OBGyQ87 Fh1y5a8mWoXJ+8yyiuiL339Dvj5/pEIBjwVmuQ== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new postcore_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-em.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c index 84a7375..8b8037c 100644 --- a/drivers/gpio/gpio-em.c +++ b/drivers/gpio/gpio-em.c @@ -396,18 +396,7 @@ static int em_gio_remove(struct platform_device *pdev) .of_match_table = em_gio_dt_ids, } }; - -static int __init em_gio_init(void) -{ - return platform_driver_register(&em_gio_device_driver); -} -postcore_initcall(em_gio_init); - -static void __exit em_gio_exit(void) -{ - platform_driver_unregister(&em_gio_device_driver); -} -module_exit(em_gio_exit); +postcore_platform_driver(em_gio_device_driver); MODULE_AUTHOR("Magnus Damm"); MODULE_DESCRIPTION("Renesas Emma Mobile GIO Driver"); From patchwork Mon Jun 17 18:41: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: 11000149 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 B036B14DB for ; Mon, 17 Jun 2019 18:42:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A60E9289B8 for ; Mon, 17 Jun 2019 18:42:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A3AD289BA; Mon, 17 Jun 2019 18:42:59 +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 0C10A289C7 for ; Mon, 17 Jun 2019 18:42:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729026AbfFQSmt (ORCPT ); Mon, 17 Jun 2019 14:42:49 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:35907 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728951AbfFQSmX (ORCPT ); Mon, 17 Jun 2019 14:42:23 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MZCSt-1i7Pqf2Uvx-00V8jn; Mon, 17 Jun 2019 20:42:04 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 23/30] drivers: gpio: ep93xx: use postcore_platform_driver() Date: Mon, 17 Jun 2019 20:41:04 +0200 Message-Id: <1560796871-18560-23-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:WOHD6z9asr3ikN7lL1ee98rfa+4yx4hBYLHbF+efX3j4M5LLkvR sDVXUFmCtykyFiGPmYDnEKUAY8QshybPv6k5kxMpVGYxvCguQBbmzLBJCna07ckyJl6RSZM NeNjhxyFIK+1Vik1jGS9+TF5Vplnn/ft6QRXrV6tgGnHhCcEF0gmP1izCgKW2Qgbqh4qnxR heNHTgcWFM3MT6KFvJhkQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:2xDZlBi8Df8=:A0N9iN1j1VFuwuzLFBQzIs 2OyhIK9xxJwdIJsd0YEMKwvNpWuQf7jlCkhZLHaEMmsJtUvGOB0N9QivzjRiGFHwA2BJGRQi9 iqTuYcWTYyrAkQF5iTVWxa0IWCQ3bi9qp4WmnQj3N+Gnrd+7n316xGp8pT856Wzq0VxEnuwox vHISWCC8YbDhLxDiAj0S8J+EbeYYnel3CPLOG6IAF0wfZK/qUYiUdc6+1Z0LalYiwU8B1TTsg u1T/p5Er5TfNWQ4qqJua2N1mK5K4Q2/sKelBadu1AfxzHc8JqXqLjK5TlexHgFod9ANaDkeKC 3Dviu6iSNhMmzVstVoGK3aK/kTOfePnVgRFQRjgwO9SbqpVygrRDtqVZgBRcV2muBHvx1ckFH ieZtNcQPvQQJSljh4/KlgGMGxneQS22OasLwtbJnDLYnY5F/eBXYinG/BSvlUEZiOouIwMKcT BQmCXOjhBlBdLFMI4+3m6P8f8TKSZRJu3YBoFlFTFgDnLbILLs+YHhlHROMBS17/EKOOZ3375 tW8xci8v/8TdcIlPw+EbqERV8WFNhuuty36kyTICLxPcfVdhS5oA1QY3h/yIwLJcAd8SIxmqT 3qtxuaDPUnADbQT70J0e2VgG4VUpRvz+/UxnyfuRcgy3AKIevNkiYXU7+TOygqZ7jX12UKPR6 bhB0mggBEBsftzQvrVmQuSEp12TLSYleMm4NL+4HvZ6tGNe6V6Y2Ytnh+WGbdmxZfvxYpaCNi Yn0nEIgyoqyoVm7zBXjR+qc+S070MS0f6qjUJg== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new postcore_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-ep93xx.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c index 71728d6..d4dfb50 100644 --- a/drivers/gpio/gpio-ep93xx.c +++ b/drivers/gpio/gpio-ep93xx.c @@ -429,12 +429,7 @@ static int ep93xx_gpio_probe(struct platform_device *pdev) }, .probe = ep93xx_gpio_probe, }; - -static int __init ep93xx_gpio_init(void) -{ - return platform_driver_register(&ep93xx_gpio_driver); -} -postcore_initcall(ep93xx_gpio_init); +postcore_platform_driver(ep93xx_gpio_driver); MODULE_AUTHOR("Ryan Mallon " "H Hartley Sweeten "); From patchwork Mon Jun 17 18:41: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: 11000147 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 5759D112C for ; Mon, 17 Jun 2019 18:42:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D76C289C7 for ; Mon, 17 Jun 2019 18:42:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41D06289C9; Mon, 17 Jun 2019 18:42: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 E31FF289D1 for ; Mon, 17 Jun 2019 18:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729031AbfFQSmu (ORCPT ); Mon, 17 Jun 2019 14:42:50 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:37109 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728953AbfFQSmX (ORCPT ); Mon, 17 Jun 2019 14:42:23 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Ml6i2-1iLvMX3bHI-00lXWM; Mon, 17 Jun 2019 20:42:06 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 24/30] drivers: gpio: mxs: use postcore_platform_driver() Date: Mon, 17 Jun 2019 20:41:05 +0200 Message-Id: <1560796871-18560-24-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:Qgiw7ZaeiBAjth0IOr6Xj5h6QYCD3X5jMH6eO4uCwVPY0vNhBnF Tjp0/G3Wgb/0FjEev5mvC+Vp7ieVHg2mJHR9IovvMX/+Fm+kWy0hIfmJrfd1F0r/cbMLuP6 eo6LYhsHjyyeJaUw2OYjkBfwglhY/Viysszh8D9Qb71GN1vKYXdpI6rav7qKz6jdnKHc80I RJK0LQ13fjzz1sL6bq9VQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:xk1hB4mvM7Q=:Hk2ZVnuqbi2GaMoVsI1kxf g9jH2NtsTfBh3cVpLMa1gCq8nGE2IVd36SEOka8iaL4ZbS5f+HxoonbpaarzsKVuO6mHKr2X5 PQHsDbS1FspceNstxdV0/4Tqw69t2xRIEZUX9wy7c+aTDC1FhSMvyIqoxDcve2wbO+xObiAg2 YBOIoMIKoz8LJGhhFDEpReiD1L3ywYQEv4SDgJ5Yn5npdXaDS3vcu8rMmwSWRI4F/i2Xa6je3 KH7LkdHixEa2Qzc0YbI9S1Sc+7oeMotLJeLHBjXBnAHMiwlsPOHwPwd3BAhXUZyxPrlrnmmU7 ItAe8ejPa3567p53x846fP6hKiWUjhgPUtIIVL1IeKqvzetcxQnGkYp2tQblk3AmU2RRVcTfb o9lhmgWAk8+pdb3HnWlD7sl9KaNGp5hO+gW4u2uCUikfnPcwGhXy07C2jDCyyRaQDpBijFOlM NWji7Qfs8uMKN1e26MG1Xncs7sE95ZEDOSQGkidl+QNkC3oirtwRL2jWvzRv0kKIi7G+/0DnO VCScUaSxUugvlWXfNWTRQp24UIjSrGz4/IgQrnqvdbOWQAv9x1ka2CN/a/jCT60QskLUYIr72 3Cgnpy+1wqmem0ZHLtcqoTE5evM2WDJkp2sIy71SH43mRTTABG4Fh3V7VX/78y+0TIeJE0nBt A9v5x0/suhw2XUkMCw6JNTzyY4W463sEX4oBC9oN7wsZ8vSo3Zl7TClEwEUO9VaWFzQRQfCVb saQXQp51obvIXSmRy9y7Vru0PIdSO0bdcZxZEQ== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new postcore_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-mxs.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c index 5e5437a..e2f54b8 100644 --- a/drivers/gpio/gpio-mxs.c +++ b/drivers/gpio/gpio-mxs.c @@ -369,12 +369,7 @@ static int mxs_gpio_probe(struct platform_device *pdev) .probe = mxs_gpio_probe, .id_table = mxs_gpio_ids, }; - -static int __init mxs_gpio_init(void) -{ - return platform_driver_register(&mxs_gpio_driver); -} -postcore_initcall(mxs_gpio_init); +postcore_platform_driver(mxs_gpio_driver); MODULE_AUTHOR("Freescale Semiconductor, " "Daniel Mack , " From patchwork Mon Jun 17 18:41: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: 11000137 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 D2EF514DB for ; Mon, 17 Jun 2019 18:42:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7BB22881E for ; Mon, 17 Jun 2019 18:42:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB50F28820; Mon, 17 Jun 2019 18:42:38 +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 720FC28841 for ; Mon, 17 Jun 2019 18:42:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728384AbfFQSmd (ORCPT ); Mon, 17 Jun 2019 14:42:33 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:37201 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728950AbfFQSmc (ORCPT ); Mon, 17 Jun 2019 14:42:32 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MvJsF-1iTG9P2nw1-00rDzz; Mon, 17 Jun 2019 20:42:06 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 25/30] drivers: gpio: omap: use postcore_platform_driver() Date: Mon, 17 Jun 2019 20:41:06 +0200 Message-Id: <1560796871-18560-25-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:tFS0GjzX6alLG19pcq9DPLM369DFPeY4/FfXiA6BRRzIIxKJuJS bNXHsgS/ru29Ym7LEcgtLqQ3RSCyKDKmMYd5nivpxeZUG7FiU8NWBBgmuutqWHyKZzUc5UG ma9M+hvWKe7effQ+FlIgyLiZ2wM+1bixOYbyXiJCjT2qfzwjQcV2uenT++3Ohkqd8O4Dqxj XYAPhfVY4/p46MS5cMn5A== X-UI-Out-Filterresults: notjunk:1;V03:K0:tRv4K84lkKs=:dWeeZq/NGKHGQccUiV53fX +TfnnmpNbzSLBFctGjq0ZTz3GwgPFnGl8nJzS5loTtjj91jpEHPgmzHy20qTEKNbcJ8z2p9Vo GoZWKgp4S8lU8U0K5YvE2EWtrZEHZWWbmNzDc2hqR8bubuonqv17GXKP1+qwKI6mcTf/pfH0E gLp/OjbJg0A+2U3wLlbOXbuGjAP3gS+BybkKK7aE9WBly+37grzgb/VC1S2Ug/DUJyYdwOWGP YWNoFFW25yYVetpKsxQ9lPaRN3BoIyNFq9N7MuE7cWhXLji6QiupVcD2zHpo9mF3cf3rmoLIm dysQtuLi6MEYzE2fDslmkQqP6vc1xaff0aed7EZe3RL9sVEAmkp0cPFZX3Zl46YP8Bc5G39Y4 1XC+/luChxFwaqixJcDv/yk712JGHzyXmJWousJnNZULeTSKujdCqplWg5kkke5kSXWnVyb7y NVPWSOw+igxbB4ELKpxhpBnO/N0x/LiISRS8wd46IsLz/cXE3XDK5VrBGSnctaYKfyhfYpcEJ X4iesZkyfZxA2yqyjCVTft6d1UYPl5kd7gnVF+Tph9SJvX+oISt5vrukTM51oo1GLGYPah6Bg Pv4STYGP5Z1zEPhWs29Eo+/K8DaWlejvl1o1RfjlZrLjfAYnJU2xbVSjyjep4QuFg4hBzhgYj onJrNyJyln7JMHYLZHt3WUB6C7bUbLO7eqqeIqsaac1WUQ4ehR7pkxyaJmXwwsDYCswjUqXcp QNfgRPg2hiT6q831hXs8IAWVANa8TbsHfWtwNA== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new postcore_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-omap.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 16289ba..3ea02d3 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1693,17 +1693,7 @@ static int __maybe_unused omap_gpio_runtime_resume(struct device *dev) * machine_init functions access gpio APIs. * Hence omap_gpio_drv_reg() is a postcore_initcall. */ -static int __init omap_gpio_drv_reg(void) -{ - return platform_driver_register(&omap_gpio_driver); -} -postcore_initcall(omap_gpio_drv_reg); - -static void __exit omap_gpio_exit(void) -{ - platform_driver_unregister(&omap_gpio_driver); -} -module_exit(omap_gpio_exit); +postcore_platform_driver(omap_gpio_driver); MODULE_DESCRIPTION("omap gpio driver"); MODULE_ALIAS("platform:gpio-omap"); From patchwork Mon Jun 17 18:41: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: 11000145 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 2EBE8112C for ; Mon, 17 Jun 2019 18:42:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2587A289C7 for ; Mon, 17 Jun 2019 18:42:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19DD8289CA; Mon, 17 Jun 2019 18:42:50 +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 B9C1F2881E for ; Mon, 17 Jun 2019 18:42:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728959AbfFQSmX (ORCPT ); Mon, 17 Jun 2019 14:42:23 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:37787 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728950AbfFQSmW (ORCPT ); Mon, 17 Jun 2019 14:42:22 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N8XHb-1igTYE26OP-014TYV; Mon, 17 Jun 2019 20:42:07 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 26/30] drivers: gpio: zynq: use postcore_platform_driver() Date: Mon, 17 Jun 2019 20:41:07 +0200 Message-Id: <1560796871-18560-26-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:aFqQ1DSPzh4v6frM7pCp7Kg/IxByxmUnQp3Jo6ZziTcbZFyUhRX eudPvP0owXDo/nfbxcpUF9SaYfMB6A30v9JgSJQlI29aIDIsx/RpJGOgRFpcSGK3v1XQpam GhFYLkj63TrCEKR8V3hpF+tmsJXq/RzM6vqTgvs/6Cc0MOLBW+7PdWWfbteRI9qMDXBNeUV DBQH6xvHc9NWFM1yyQL/w== X-UI-Out-Filterresults: notjunk:1;V03:K0:fSwFjrIXnsk=:IFNP7QO03UPTokbw81zkAO i2aj8dT8sWd658++/A8yiOuOaj6gToFzyEVmzj/1BVrfs/bbTmvMMWodEqNYHlmMvvw6FkW3O M4cTAyhznN3FsI61egaiQbJW9lQIPaSUHgwhbUcEcunnojk2gEAQrLka/il0zU8EQQHsG45JK E8pMeUbyULa77MMeUO9bFUu/SN1fY2uV0hQAW9cnrW5tgiryNiJ2tRf28czfQGp8GBMiAAXAg d8jgKYuH6IAdma0aAB1nBqdEaKtQXll/Cv8Oc0paIMUA42nuMFh8f3hiJokmQQXcUc4E/BvVr bMYRIlWyDNzRLNPPz6+PJmLD/ZOMrpXS0iTkEAJDu0ypVSUF/iKr1I+cnT2NmjUXRbh8xNxgY iN5gGkYrkH/9HDwx4tg+nJLIlntplA6GpcqGYwjVfzYlVEOHEHkpBqwIMohzzfLVbTSE5Lpnk Q3ZkxlijbN/4TZCv3Y5GPRMDqRp1KkS1WRcf2PXSdXDkxr//tPj+ler697rrsojl8baGGkQFm 76ry/UipppfZk9795XZRZfnZrVQAphKfLfoaSfcXVljvB8fVmUukFkwNk+IkkoT+V2ny9WUkC bEWB/lEArPxQq16s0cFTiPuuR/PR6ftPZBqfIJmarbGT1GwYALgddjx0srlAWhiY0EbwVzW1Z 9kGQkl49ouOKOy0lMAsOKfaMA+Q7RFv3tkH7FEMsVcuNQ22vw4buqs2w7ciDjdNlERwt//lni dZB3P9bpUypeHvh9o51fXuIVnYbob/RGcuxmww== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new postcore_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-zynq.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index f241b6c..30ad4ee 100644 --- a/drivers/gpio/gpio-zynq.c +++ b/drivers/gpio/gpio-zynq.c @@ -952,22 +952,7 @@ static int zynq_gpio_remove(struct platform_device *pdev) .remove = zynq_gpio_remove, }; -/** - * zynq_gpio_init - Initial driver registration call - * - * Return: value from platform_driver_register - */ -static int __init zynq_gpio_init(void) -{ - return platform_driver_register(&zynq_gpio_driver); -} -postcore_initcall(zynq_gpio_init); - -static void __exit zynq_gpio_exit(void) -{ - platform_driver_unregister(&zynq_gpio_driver); -} -module_exit(zynq_gpio_exit); +postcore_platform_driver(zynq_gpio_driver); MODULE_AUTHOR("Xilinx Inc."); MODULE_DESCRIPTION("Zynq GPIO driver"); From patchwork Mon Jun 17 18:41: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: 11000153 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 F252D112C for ; Mon, 17 Jun 2019 18:43:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E958D289BA for ; Mon, 17 Jun 2019 18:43:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7983289C9; Mon, 17 Jun 2019 18:43: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 649AB289BA for ; Mon, 17 Jun 2019 18:43:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728932AbfFQSmT (ORCPT ); Mon, 17 Jun 2019 14:42:19 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:38381 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728926AbfFQSmS (ORCPT ); Mon, 17 Jun 2019 14:42:18 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MStKq-1i3qL01cOE-00UHWC; Mon, 17 Jun 2019 20:42:08 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 27/30] drivers: gpio: iop: use arch_platform_driver() Date: Mon, 17 Jun 2019 20:41:08 +0200 Message-Id: <1560796871-18560-27-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:NTbFVqHQR3mUK02EF5SUZOfvGIlFBgdKX3NDSeNjplODFG2aGbj LPmOsIiQ0lw44gx+sKsYL74ARD71Qs6dof8pRlIHbFKloBuMcQVnARK9vWSQyZf3UaFrwGL ibLSNF40xPu/pOTxQpOSh9dQ6P7VlAp98MYT5Bx6brehEz3Ton8YWviIkOz7k84FVmrJkh7 z0zWK7y+GmU0RNmikvhRA== X-UI-Out-Filterresults: notjunk:1;V03:K0:REaB+gExQqo=:Zo6nlV1ZnA0bJdPyIPrdqC ldXUnUwxij/gqKA//Euaol3F0XtWgSVIyN0+SV+CH2fScXKVa7Q9uM3mdYajr5sDWuBrZHBfv 2LIafGMm5FJxULI5eKqECRtm91gWHPIZkcyeukL6CoI6tgzJ4j0iyWxEQuSZu2qwqlOwn2v+0 vVFzT7lZ9YaaPiOUdIh6STK9/JD+9QN0TCKNozW3L1g7XluVhVXpb766nZ5/6Qc0rFUGHFUoT XXmZE5tsNirgjVvuOPX/wW1HhPQmD9vMw9UxjGERBwpS5t/pS/sB6DoVnnu96bwWbZzlY5HuK cMt2AJSuBVdgY7+Y8Vmw+egvx+ws7iR6tZRJ6rPKKdRSTX+fIEAv1BlA/9XiKscGyqO1fw7mw F6aufhW4RfKZaGlMnkjzD3HSx3lIL+QPlLOJBQHutyQGwt9jU65pmY5ZxMrndlOH8ZOztQT/5 TqrB+5cVNZTCeDOlrvVtlULnVKHJ0YBFB84tz2ufBbKvKDZZdT9U1o5xr+K2DEQDgdzD9QFZc M6iSO9l8jkN8QwPf7bF6AfqlSjpoUYKYByxXFpszF41O3jpa1jLgcgbzlIKYERa2FDF+UEKqx j6fGIQq6tWO2FSw3hhDeVRhG88dN5tpo6RZjMmSlCTkrYQPx3qHX3TSvD9N40xP7r9xC4HEYH NpnaKV87IYD1w94XEcarXxkZZ1KJ0HekdSLPiOra2903syQZrlZovH0FILebU1EGtFEdXhgLj Bwul842yJGoZXFq2tH4+kXufAD86kw+TYsChJg== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new arch_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-iop.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c index e355c59..651ab5a 100644 --- a/drivers/gpio/gpio-iop.c +++ b/drivers/gpio/gpio-iop.c @@ -46,12 +46,7 @@ static int iop3xx_gpio_probe(struct platform_device *pdev) }, .probe = iop3xx_gpio_probe, }; - -static int __init iop3xx_gpio_init(void) -{ - return platform_driver_register(&iop3xx_gpio_driver); -} -arch_initcall(iop3xx_gpio_init); +arch_platform_driver(iop3xx_gpio_init); MODULE_DESCRIPTION("GPIO handling for Intel IOP3xx processors"); MODULE_AUTHOR("Lennert Buytenhek "); From patchwork Mon Jun 17 18:41: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: 11000143 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 1379A14DB for ; Mon, 17 Jun 2019 18:42:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07EBD2881E for ; Mon, 17 Jun 2019 18:42:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF309289BA; Mon, 17 Jun 2019 18:42:48 +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 A669A2881E for ; Mon, 17 Jun 2019 18:42:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727317AbfFQSmn (ORCPT ); Mon, 17 Jun 2019 14:42:43 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:48307 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726723AbfFQSmn (ORCPT ); Mon, 17 Jun 2019 14:42:43 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MGz5h-1hpKew0oMN-00E9qn; Mon, 17 Jun 2019 20:42:09 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 28/30] drivers: gpio: mpc8xxx: use arch_platform_driver() Date: Mon, 17 Jun 2019 20:41:09 +0200 Message-Id: <1560796871-18560-28-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:ZLaOl44ENja2hPsV07wwK8/JgZWjTUnVD5gFQWyGloyvEdDNaPn ikb7Pwa9dguuY7+IN8dNfamms2+DNi8E+5ustgyHK6njRJw3nhlqkq/XddLbCZGasf/kGKX E5JKYjUQCRzJEOSifSHAPjEdVKFDMQA3Sso5Yhm77xgBnZANXMQ1AYQWEza2S7goY0tRAei NAWAcyof+gkw+Mo7bjs+w== X-UI-Out-Filterresults: notjunk:1;V03:K0:mSSjftgRu7w=:gj6hA+IYYueJ2eFKiNwGbL mqjNXhwbu6eF6zBee+grZZRErJz4zUS7x8PPO7Kt6Ah5vlA8P9ynNKW679nueKZKmmzlg+2+Z iIJynHXipqusUNucKkWazbBXProFHlg80dAWIf1F+yl36TFfxBj/c6jfSNVgGZJXGcQ9ou6Su CSyp9wzlbV/XqCLyKfcVKO2mQK36VIUlyjsTn+xfmXIAzMNHAc0eMXeFj/R/fKpJhguHvdYLw /JyclJwBWDlx7Q3uwZhEa9TBG8HZ5znQX5XtwThlCMFIx3eKpZuCtWMylEt/7YjThXq34Sy6c NNSXX0W+y+rtVnsdJaUlE17fxiosLVGhE7cdap5lZV2wxEvMVSErvtclU2y5bTaqSbXZ3+0Y1 WaKGVC3cdutIz2MFeBCT/wzSrTuUx5LCwpBrn82mC+uBUC6hS3FPnmMG8z9VwL7yJSHP8uFG6 pUbHUpCUBh7NGavm7K362+EBsMMs9CTlxNdGNGvdb2qsZmOEn0PnDZr3GEgw/YDQ0H94WGtzQ FvUYXz6lRx5nx+MMgfccCpkF1FfTunVyui2ck5eTmz05kDZhEex4lfFuPwCSXAgzyNFCP0GOX 0tux+Wvk2kUKM9w05ntMlIQJkNFpsfQVFO7xQXFb78qQQoVCTInlqtmEd6XltROxXqSBrLLbP nwwk6c6vMPKAVi/MgfaLk1q1jpFRCMSIe/m+z1Ec0W7DpkUv72Tneuh+kYNqniwz9/5Hxgysv sdVnLvVpgyRTPqMd6rlI0Yl+XWXMz1tNv1TS1w== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new arch_platform_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-mpc8xxx.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index c8673a5..6eef9b8 100644 --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c @@ -408,10 +408,4 @@ static int mpc8xxx_remove(struct platform_device *pdev) .of_match_table = mpc8xxx_gpio_ids, }, }; - -static int __init mpc8xxx_init(void) -{ - return platform_driver_register(&mpc8xxx_plat_driver); -} - -arch_initcall(mpc8xxx_init); +arch_platform_driver(mpc8xxx_plat_driver); From patchwork Mon Jun 17 18:41: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: 11000141 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 B4D0614DB for ; Mon, 17 Jun 2019 18:42:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAE3928841 for ; Mon, 17 Jun 2019 18:42:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BFF128538; Mon, 17 Jun 2019 18:42: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 3D9A128538 for ; Mon, 17 Jun 2019 18:42:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728982AbfFQSm1 (ORCPT ); Mon, 17 Jun 2019 14:42:27 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:47977 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728971AbfFQSm0 (ORCPT ); Mon, 17 Jun 2019 14:42:26 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MZkxd-1i5l5A3J9L-00Wmd7; Mon, 17 Jun 2019 20:42:11 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 29/30] drivers: gpio: max7300: use arch_platform_driver() Date: Mon, 17 Jun 2019 20:41:10 +0200 Message-Id: <1560796871-18560-29-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:n45SzJ0LrnQE0VD1afvGYwn7FX+jGR+YxB9RgxD+J1Yg2Ei+4DD kAIP8UJ55viTpteajydyqKRO+he3zkaKyU9SIaEkO03Omj/2fxi4A/1y8Muz+tbDigx6viO aVc0s802LGgItzKa0aCSIdP4g7NOOkJYT2VxkRl+CD1J3nMoBxH75R0Xfpo9x11rXzV7u25 VXCTPW4X9Sxb12/HsT78Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:eBAWNbocN7E=:jJRldIVZGXVaq0/syEgHMa M7tjuLbNDK1B/rjkaRmumtKabLgJaPw0cHoh4/1aN5ylb1okzqvVOTqb0qWq107ZXYCesSXYL c2ZhEgg9iQxFb4JiyYaE6FrOTKk8p5zd7MA/F64Xkoj0KvBuY0ff4NIoezG8JZU0e6JjnMwTX wh71Z2pFV2t4R7JjZFGaxepeh0dfW2Kjvt6bqEf+kw4C3kLTaWOiderT1pnY4obY/0pdr/bIT 2eVLlis4sgIl6vyh7cTQdWp8cO7TiJrOsisWDT011pYa+jv/GjCTyS8AiRK8g2CfhnQParoyY 9w1n/7O7GS+ubQ37nIq6s9bN9Gk15PgV7srtBxVZxJS5vQRlQ5ENAGX8wG06EHvTRN4XPbcdi pwXHI+M091W3uQaN2i5Q0IjFxZquLe5n6wTIQm0IiBbWYPMqOECjkDiFTmNzlkTNb8SYtBOaz gJFapgv6WXZKMuyWAz01xH0ghFTsCL22Yh54f8uKV4hu3WIpLoPQxIsHr9X3iByPaITmX0gCd 3VhU3X39ZngOOmHnlE2yHaUTt9+XiZ9bIBa0ptDnSjSz/sn02ZBm45jlvtxNfmqcMH/uOk3Qu sVcRnQz0n4cfx48KLK0Cu5XgPPtHSOe98IYvBJhhbubZWcDkzZklqmLUBbNab3FixLQTU6ZAV YvLZRmfF7Giweo1e5WovWlyTjaoHpRWc8EiLeSKVL3/9yDfHeedCBrQlU9U+8HsbvGcMvA7ak j7eoFNqGNvdW/AJ2E7mgxfEEpmr3V2hw4Oce9VX82K1kLmAWeM+a3CiHpLstpQH6HuaR+Ec4+ CIdduP7CDs+N/XpZUZfZSP4m5xyQyj9szEzivGgr3MlNZXRwMSezT2Advj31DjicizUgJMbuy Ic0zSlhtbt5dVEDraC1zf0ZkDz3thMJh4YRU+RtDETk5UdAvo21/GGZZLPVlJWfVqRywFlVL0 sF7NvPYVQiw== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_i2c_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-max7300.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-max7300.c b/drivers/gpio/gpio-max7300.c index 1ae9ba8..36d5afa 100644 --- a/drivers/gpio/gpio-max7300.c +++ b/drivers/gpio/gpio-max7300.c @@ -70,18 +70,7 @@ static int max7300_remove(struct i2c_client *client) .remove = max7300_remove, .id_table = max7300_id, }; - -static int __init max7300_init(void) -{ - return i2c_add_driver(&max7300_driver); -} -subsys_initcall(max7300_init); - -static void __exit max7300_exit(void) -{ - i2c_del_driver(&max7300_driver); -} -module_exit(max7300_exit); +subsys_i2c_driver(max7300_driver); MODULE_AUTHOR("Wolfram Sang"); MODULE_LICENSE("GPL v2"); From patchwork Mon Jun 17 18:41: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: 11000135 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 8663A112C for ; Mon, 17 Jun 2019 18:42:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BCB128820 for ; Mon, 17 Jun 2019 18:42:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 700A5289BA; Mon, 17 Jun 2019 18:42: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 13DCE28820 for ; Mon, 17 Jun 2019 18:42:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728986AbfFQSm1 (ORCPT ); Mon, 17 Jun 2019 14:42:27 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:37191 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728950AbfFQSm0 (ORCPT ); Mon, 17 Jun 2019 14:42:26 -0400 Received: from orion.localdomain ([77.2.173.233]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MWiYo-1i9ske2RCq-00X3Ti; Mon, 17 Jun 2019 20:42:12 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, andriy.shevchenko@linux.intel.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 30/30] drivers: gpio: max732x: use subsys_i2c_driver() Date: Mon, 17 Jun 2019 20:41:11 +0200 Message-Id: <1560796871-18560-30-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> References: <1560796871-18560-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:cCDeCfM59RF90RxmymdnnTZyFuGyFovFw66CIcAmzljQAcUCv50 GHZdz+78OGvTtCBTcKJL1JKtM2LAYUAGqkUZqHriMkIzaNvafUq+aNA3OY0YiHro69MDLZO dzbzbBXy+eMl7t+QG7QOmjCDfgqFoeDxvYkR8c8FaSIw1+kNxxx8GG2B93NHJBZFBODWVDA fWLGs8s2d7UAj+faSe7SQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:f9JpWGPh8+Q=:Prle+yo3zB8vcfwdoAK2g8 2gzxvbqD4NKKJ2D+vj4cO6yWP8/PFEBRWr5iN+PXDLZyCbNsNXUxhNjPKPHLA/MleKDaAKAHq vRyvmeLVGHug2/ZCDG5xOg8Kfn/TuG9DIABDPhGru8LjN1ocaWeawNrBH0qdgMdtpLai+JCTq lHwZVLspVxps/zV8WoEQeGIMlyBc/+eJksIkDYaZZ6BbxFNmv1Zk+S5dkoacPYkWx7nVGKWmH A+KH1mOv7cbTvc8DJhJjSbHcHvhR7Xo3VLPASfFAEdtSkI7MFZRtc93r1RypaqwSRZHNU4zty hjoCIDx8p3cZer1X9VxiAQ8R6sIyth4oleJq6vYVmTFTpzBXpZaRRgPmhJl7XZUP0m3Kjjqan NYcTOPjLsplRrF4jzuOvB+kRMNlZPsKiyqNFhkrNUenAP7fQFViNMwupkjbrmGwkwA+2f2bL4 fk99ZsSFhw9us+GK1fJBNNwY4ZHiX6+6O6gnmm9EjrKERGveNEEGehdRM9ibMts7hJ06T8Uvs uct1NQJDCExlFFiLE6sWZG+eEgtGzc6gfexFgnc/mNrqP0otK0WEplszhV4Cv6VdOrLPM5CKE gQpeep9J3O14sWRUXtFLlX+fCQXRIqWTfaUuBfA4EAE4kYrUNQ80fF8uCjWMZ0f4XEhE41Fio cE8tn3zxz3BV3B2GVly5P7ER/T9/5w3KX38GX49rjtPSfK0kAi1rocik3cLojD5kKNjvd2mja W73zWA9QHbNCRh2SMvxxy9fagBYWlWMNJ2RMxxa3TnERt6EaKgfI0NeeI5WOyZqw7eMOSR/ZI 31NIBLNdWnFGTJeFcRrHz/lEEY5fmQPR0BJDVFxsjJ8VwhI1RNzbLxltqhayQ/ftVC1LzoxT+ cCQvpIJA8QBJ5MQkMLd/GpDXHnO7Z2LogOqS1JLOTo/H/4snP0zZfciNYNUb1k7PStVktEUNX fHkDDIqKqQg== 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 From: Enrico Weigelt Reduce driver init boilerplate by using the new subsys_i2c_driver() macro. Signed-off-by: Enrico Weigelt --- drivers/gpio/gpio-max732x.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-max732x.c b/drivers/gpio/gpio-max732x.c index 5e4102e..c340883 100644 --- a/drivers/gpio/gpio-max732x.c +++ b/drivers/gpio/gpio-max732x.c @@ -756,21 +756,10 @@ static int max732x_remove(struct i2c_client *client) .remove = max732x_remove, .id_table = max732x_id, }; - -static int __init max732x_init(void) -{ - return i2c_add_driver(&max732x_driver); -} /* register after i2c postcore initcall and before * subsys initcalls that may rely on these GPIOs */ -subsys_initcall(max732x_init); - -static void __exit max732x_exit(void) -{ - i2c_del_driver(&max732x_driver); -} -module_exit(max732x_exit); +subsys_i2c_driver(max732x_driver); MODULE_AUTHOR("Eric Miao "); MODULE_DESCRIPTION("GPIO expander driver for MAX732X");