Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2866325ybi; Mon, 17 Jun 2019 11:42:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrS8keXBJwvM07E+g0DIckAGpV7pVMxk+FnTGgXTvqKt5d/afuOO35TkYLKo+S52nEi3OC X-Received: by 2002:a17:90a:2488:: with SMTP id i8mr200221pje.123.1560796968996; Mon, 17 Jun 2019 11:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560796968; cv=none; d=google.com; s=arc-20160816; b=zmVMvY9XUo+VPAmwM2Ytm9T8xUvdE0IuD7oBoB9+CVVIFRqrq6xtMyoDK/HwgB7EzJ LQdKo00rWGjexYDlN7EFYuMVyrR8OVSyQWgeusYPmyDNETRPPC1ZXmdQUXKX+vLHYGir 1OIySZ5s0DaJjhTcpgBpwc+I0qyIyEhI99KbTNAPRLk3kuxiBq5cbJ1WZ3JtEsIc7i/S 3hBw90hoVjDnmufz7YOaaxvg+4QFJWPwfBxc4dg/WtsR3FZDso+mciRuTEdKiQ0n64nW YuLM+WB9T8j/iI4RaNx8cB03LCMLzzHeW9cra/SHdTmlczf7iDj+zN2Bx54Jr9w+o/mV 7etg== 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=eXtvhenWjT8IpIzI8Sjd3V0a4V2z2/2WFZv2UbUDx30=; b=EornNvpb2BVzVbQtomK75fyje9ZChdwBNbHi0EUjsBN9f0foHD1H/XUdAMFgkeYk17 S9leLGExQYyHoZkpC6ou+dtZFyBZymWpjLJOXv4LB+lQm0Dhc/fQW9xxjkHE9YjK2dAG D+6zt43DTeoycWMDh1PWWU3/9mvtRiSriKkQidBmfCu/3KEWY/h5o/R0rbtXIYETKant NkEhv+z+B1gvLOa8eFFwxaeDBntPmCqsud5JJsTtdoMBgA+BD+eLibnybW88iY5tQbRm 0kooNYIKFOAP8x6F+Iu2fhuJAWokr9cRMUrtgKaaRnZQL1A3u05hd5gKxJ+qoFeVap9r 0TZg== 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 f12si10820506pfn.98.2019.06.17.11.42.33; Mon, 17 Jun 2019 11:42:48 -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 S1728855AbfFQSmC (ORCPT + 99 others); Mon, 17 Jun 2019 14:42:02 -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-Spam-Flag: NO 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-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-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); -- 1.9.1