From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932570AbcKPQjf (ORCPT ); Wed, 16 Nov 2016 11:39:35 -0500 Received: from foss.arm.com ([217.140.101.70]:58466 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752605AbcKPQjd (ORCPT ); Wed, 16 Nov 2016 11:39:33 -0500 From: Sudeep Holla To: linuxppc-dev@lists.ozlabs.org Cc: Sudeep Holla , linux-kernel@vger.kernel.org, Scott Wood , Yangbo Lu , Arnd Bergmann Subject: [PATCH 1/2] soc: fsl: make it explicitly non-modular Date: Wed, 16 Nov 2016 16:39:26 +0000 Message-Id: <1479314367-9169-1-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 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: 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. 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); -- 2.7.4