Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2867833ybi; Mon, 17 Jun 2019 11:44:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3ECE/wWc/qWrchXAOISkuT4/iM794ea4IRe13VQlnMI9Cq6UyUTjgcXzeCJ2aEGOd6tAB X-Received: by 2002:a62:6344:: with SMTP id x65mr10133380pfb.111.1560797076389; Mon, 17 Jun 2019 11:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560797076; cv=none; d=google.com; s=arc-20160816; b=Gwc5Yp2kCtvviK6Tqi6xjH3K/nzPWdMrvtun0K8tTms6CMQG8OgdSrh+OUbHwF7tph MDuO46HYW2i8OVfxMxL/vcFrarl+r2VuxIevGy2x6ERBmD4Oy9BZGpYe60VohhpUqply wAgVyhfQ2FDcSyDQcScl9HFwe9f9/NRWH9i11aqOZ0YIGpSrZaKSFqN+LmTSj5iHvVeB L9QL/UgJ34jYtQW6WOeKCx9TbUv/wWniRsw7NrnXb22czToaohoLC9EYrHkLz1oEw1rL NDeAT+zptoL4oTB9nx0aOilX6lRu3B++r7KXPxp/tmXDPMx8eoebiDfpM9gN1ghVG3ob cfAQ== 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=9DBdcjo7dBkfATpO+TkrAhcuCmS5x0NPEuDTS7eO5tI=; b=OCmND9zXVv6zPVAnMDYXGpInbp2D52XDKmWiOgnwt3Kwsx0cDk6gL4ZeZliBi+YJBY IDoy8ayc0HawDG0uICq7iWVMZN0Cr3uUzNgI9cAAF9OUSFhw1R+KPbrToHwmOq7clXwV j9KSnZIkOeo/NpqNTisoDKKyk+/Rxq4n9FicTk3g/UA+7BYtOa4m9fC17/a/td21S95/ FnfPc8sPQM3kN60d5uxBumk7DOwzqbBMG9g7FxDAIvnPY2qHXa9sKSFkwYbwdwgSOMjP tFkQF4+BVPRNXntQtCqkQ8ZCL9QCcM41er7vOTlAA5MgJcWvRDoSdOZmhh+JhFi8zJ1a 9B7A== 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 e18si19661pjp.36.2019.06.17.11.44.21; Mon, 17 Jun 2019 11:44:36 -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 S1728835AbfFQSnl (ORCPT + 99 others); Mon, 17 Jun 2019 14:43:41 -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-Spam-Flag: NO 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-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-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); -- 1.9.1