From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753201AbcFGCni (ORCPT ); Mon, 6 Jun 2016 22:43:38 -0400 Received: from mail1.windriver.com ([147.11.146.13]:49813 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752018AbcFGCng (ORCPT ); Mon, 6 Jun 2016 22:43:36 -0400 From: Paul Gortmaker To: CC: Paul Gortmaker , Laxman Dewangan , Linus Walleij , Subject: [PATCH 6/9] pinctrl: palmas: make it explicitly non-modular Date: Mon, 6 Jun 2016 22:43:05 -0400 Message-ID: <1465267388-17884-7-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.8.0 In-Reply-To: <1465267388-17884-1-git-send-email-paul.gortmaker@windriver.com> References: <1465267388-17884-1-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Kconfig currently controlling compilation of this code is: config PINCTRL_PALMAS bool "Pinctrl driver for the PALMAS Series MFD devices" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only. Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit. We also delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments. Cc: Laxman Dewangan Cc: Linus Walleij Cc: linux-gpio@vger.kernel.org Signed-off-by: Paul Gortmaker --- drivers/pinctrl/pinctrl-palmas.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/pinctrl/pinctrl-palmas.c b/drivers/pinctrl/pinctrl-palmas.c index 8edb3f8c72c8..3def8805a882 100644 --- a/drivers/pinctrl/pinctrl-palmas.c +++ b/drivers/pinctrl/pinctrl-palmas.c @@ -21,7 +21,7 @@ */ #include -#include +#include #include #include #include @@ -1059,10 +1059,4 @@ static struct platform_driver palmas_pinctrl_driver = { }, .probe = palmas_pinctrl_probe, }; - -module_platform_driver(palmas_pinctrl_driver); - -MODULE_DESCRIPTION("Palmas pin control driver"); -MODULE_AUTHOR("Laxman Dewangan"); -MODULE_ALIAS("platform:palmas-pinctrl"); -MODULE_LICENSE("GPL v2"); +builtin_platform_driver(palmas_pinctrl_driver); -- 2.8.0