Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3515973ybi; Tue, 18 Jun 2019 02:01:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1eUxcStj2qUJlmlMsm886S/RZTvtxJC5hFLECSMNvZb9RAWCRIzV1h1AMjt+1NBJPJ6j7 X-Received: by 2002:a65:4c44:: with SMTP id l4mr1679718pgr.62.1560848466978; Tue, 18 Jun 2019 02:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560848466; cv=none; d=google.com; s=arc-20160816; b=Gx34pmKaMb4mgXLss4JaHv646B9C2RBTajpOKGGjfGqPanyZPkEyvycROD/Q3tK1Yk kzzShRHJ4F8KWR4FxnW2J52/IA/8UBqP371UODDizhmrB1miyEVu75EYN5ccXcuInl3E dsj/0vlLDMvjqs+p4Eg+wU3ennQI0xTG9qTZTM5qrm/12q8+qGFTTezIBXBeR7YN0P5c QIKwatTT0QnnLKyDssQFrI0walIyB8Sk4UE08tHHug1bicF3OOkGt4Sl5wJuIbi4lzIf iIIxthOr7MQz3wZy9wsfLTw7F9McMZK6+HKZ8p9hPRPkS6jdE9WAfrEzEHs6dxuUXWa3 rUuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=c3zwylB96lEGnE7X8cxxhiQ7XNZh6/LXaMWeE32LNmM=; b=yveeOfwEk/uNGwt8zEtgtkQKQp08xPGP4fXWB0m2vkIZ7fn61AJiF2WXHanWa2RdT0 xFvOqAY/Ux7rZ4GmAvHCeK9XBU8ZV3E5o2dKxMRnVgt8xr4Jhm1XKt5JPQRNXvjfhKoZ IhP5+M5XUJOEv+o0ddeKgjGFcCrvF1+/iy9woT2fmY0O8Q028ZpASixk5tVVe5F6krS6 vQVGC/mqCNHQvT3EiqeLQuEP/bmGrOfMYzq3ZXKtJ5G4oHFMmLXRriHoUBLcpPlTs5oS hYhaKnqsRPrIRQJBPNxM7RiX+eetUOe/V70A5iq2DppbPWHetzj4Q07msuowJieA0tBy OkDA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si12140893pll.53.2019.06.18.02.00.51; Tue, 18 Jun 2019 02:01:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729183AbfFRJAi (ORCPT + 99 others); Tue, 18 Jun 2019 05:00:38 -0400 Received: from mga18.intel.com ([134.134.136.126]:35905 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728889AbfFRJAh (ORCPT ); Tue, 18 Jun 2019 05:00:37 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2019 02:00:37 -0700 X-ExtLoop1: 1 Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by orsmga005.jf.intel.com with ESMTP; 18 Jun 2019 02:00:33 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hd9yh-0007Lx-Bm; Tue, 18 Jun 2019 12:00:31 +0300 Date: Tue, 18 Jun 2019 12:00:31 +0300 From: Andy Shevchenko To: "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.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: Re: [PATCH 07/30] drivers: gpio: msic: use subsys_platform_driver() Message-ID: <20190618090031.GK9224@smile.fi.intel.com> References: <1560796871-18560-1-git-send-email-info@metux.net> <1560796871-18560-7-git-send-email-info@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1560796871-18560-7-git-send-email-info@metux.net> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 17, 2019 at 08:40:48PM +0200, Enrico Weigelt, metux IT consult wrote: > From: Enrico Weigelt > > Reduce driver init boilerplate by using the new > subsys_platform_driver() macro. > --- 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); How did you test this? Had you even compiled it? P.S. Perhaps it makes #include redundant. -- With Best Regards, Andy Shevchenko