Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2867669ybi; Mon, 17 Jun 2019 11:44:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYXU7vTNijSvaNMjW323XvLJKOLw/rwgOlQ4uY6Sqi7T/xiFBsyXhVUhH7Dq7+6Xspo3Mj X-Received: by 2002:aa7:8202:: with SMTP id k2mr11209850pfi.31.1560797064246; Mon, 17 Jun 2019 11:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560797064; cv=none; d=google.com; s=arc-20160816; b=loq+mev4amYG6kBENUS1AbpCINsQoNuZ1inBz4w0ZfJ5kSk/MLLJx7kqsgF2F/bfKn /WhABCLSuXnk9N/HszCL0mXm0tFcLmNg0iebpIuflB1JCf4ZpnYsXIYkrTQrcGLEo8q7 VIm4Gw+Z6/xKGHB2zLEnB1cPWjjDEs6QCRocqnH5B/D9ujn/02J0560L3w/wfzCW8FrQ F528B0Yi/DWXBQOxNy7QY5XTb4WuFVwfovjmq/3FwxAV+zaqgxyQcqePxVsdU9rsxADe crElCOKlYJ9Dyzv2DC/0se4Ko/ZMhZZwz4jgrRcHZH+8IeClKVr2GuIqIu5FkjS996cK 3twQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=59POd7CnJ44Q7hdqFIeluH/06hSogAdq3V84zAH53wA=; b=PP3BUzlIu4wqv9vJ6VqeeaBewsS9dgSdJcqc7hrpWE1Ofo7GRVNLNWsfZAIhibup8c dCbrFclzg3tYJOPmee1T1zOwvNHJLgjsKaD6gfmb6TNoLFRYFGkA4KYXgX7O1r6Qeveq bk0yKv9ocIyO+77YFuu9oJ+x7Ek9M1+lC64PgmlRWZlG8zWDyeawevxMmXCPFM6ZMlfY VozM1B8eCeuIIKlr9xnJmi2fD/GY8A2JNP6ZsBAaIVz8DN35Mn6+halZUl4aLj8UoZvD 001KqHdacitRX/ng3DbHl54GXKEdKXwFPrgj/FhAT6jWF2OiNZumbMw6nbGlVYlYMZgE G8ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c25si3219268pgw.17.2019.06.17.11.44.08; Mon, 17 Jun 2019 11:44:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728593AbfFQSmZ (ORCPT + 99 others); Mon, 17 Jun 2019 14:42:25 -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-Spam-Flag: NO 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"); -- 1.9.1