Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2866264ybi; Mon, 17 Jun 2019 11:42:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZ4ktVETr/SXYK5weR2bOp4K9xdpMqVIlHSLN2+69LQGleOjXmImd2hIQP8H/IdSIJcfVP X-Received: by 2002:a17:902:6b44:: with SMTP id g4mr16225117plt.152.1560796964224; Mon, 17 Jun 2019 11:42:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560796964; cv=none; d=google.com; s=arc-20160816; b=HuT9BQMoFDrRMd90D2RgTAAgypSbs69G+UhAJ6Rd9ikbPe26WDKloVTQrHLxiYZyQn c+jlQPvjxuRhCcTHFgaVnU4TS8WYCpW86Vzzsgc5lIfZ0bjRSJp5sCFAGL8A/WaOQukR JbhFBeGp9gQ+sXFHIyAglSg6eKeW5jOjBsWN27Llwp3a24vPP0q4GrjNs0eYJcrYefXz kxYVKBvKcNATafqcfRftJv4NxACxerCgirBbVXBNYg2ry9yoRmqYn1+x1hobJEQBB79E B9rjOVw0cJbKD8nejTO2p293ecTzxzoEWhxnU83LT1Jo8YSNj1xk9fZusve5IKwNYw84 9b3w== 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=YN46X3C3bbpiRIe+nJ0HP77P9A/wMGvnUYThH8/qEMI=; b=XPnl4srUV2kTV3cTsifh2MqEDawrtQY8ZnlxAd5pM5+iR6Fj0WoaCVjT+LVqzZialm vt2Dt1IYx77XArXHANOcugdZoH/ZvLwjwRKUEz4agGTymXpb/ADViDOhi/9vWUXXAEdz dHj7vhRuH6/zE6noIms+77q+Ry7J6w8oTYSsfMfgD/8O0GQ2RAMJkcMMTevYeaxWLWhT IuZl8+Rrq4s/r8Qo2mJZeHx6Fm5zvZNkMINKar3h8SgueKNhLpveexDjjLBP94shgPvO GuS6rGwW+jJt41W16H+UNOlTyK/Y6Dhza41+T+33LPUV73MrZ3h7KdDvS1BooBEDtYUS eqRw== 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 k5si1094846pgm.297.2019.06.17.11.42.29; Mon, 17 Jun 2019 11:42:44 -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 S1728839AbfFQSl7 (ORCPT + 99 others); Mon, 17 Jun 2019 14:41:59 -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-Spam-Flag: NO 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-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 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); -- 1.9.1