From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753647AbcKPQle (ORCPT ); Wed, 16 Nov 2016 11:41:34 -0500 Received: from foss.arm.com ([217.140.101.70]:58562 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752699AbcKPQlc (ORCPT ); Wed, 16 Nov 2016 11:41:32 -0500 Subject: Re: [PATCH 1/2] soc: fsl: make it explicitly non-modular To: linuxppc-dev@lists.ozlabs.org References: <1479314367-9169-1-git-send-email-sudeep.holla@arm.com> Cc: Sudeep Holla , linux-kernel@vger.kernel.org, Scott Wood , Yangbo Lu , Arnd Bergmann From: Sudeep Holla Organization: ARM Message-ID: Date: Wed, 16 Nov 2016 16:41:29 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1479314367-9169-1-git-send-email-sudeep.holla@arm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/11/16 16:39, Sudeep Holla wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/soc/fsl/Kconfig:config FSL_GUTS > drivers/soc/fsl/Kconfig: bool > > ...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_init was not in use by this code, the init ordering > remains unchanged with this commit. > Sorry I forgot to append -next as these are applicable only to linux-next > Cc: Scott Wood > Cc: Yangbo Lu > Cc: Arnd Bergmann > Signed-off-by: Sudeep Holla > --- > drivers/soc/fsl/guts.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c > index 0ac88263c2d7..885409d84eb2 100644 > --- a/drivers/soc/fsl/guts.c > +++ b/drivers/soc/fsl/guts.c > @@ -11,7 +11,6 @@ > > #include > #include > -#include > #include > #include > #include > @@ -212,7 +211,6 @@ static const struct of_device_id fsl_guts_of_match[] = { > { .compatible = "fsl,ls2080a-dcfg", }, > {} > }; > -MODULE_DEVICE_TABLE(of, fsl_guts_of_match); > > static struct platform_driver fsl_guts_driver = { > .driver = { > @@ -228,9 +226,3 @@ static int __init fsl_guts_init(void) > return platform_driver_register(&fsl_guts_driver); > } > core_initcall(fsl_guts_init); > - > -static void __exit fsl_guts_exit(void) > -{ > - platform_driver_unregister(&fsl_guts_driver); > -} > -module_exit(fsl_guts_exit); > -- Regards, Sudeep