Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1102681imu; Thu, 22 Nov 2018 10:07:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/UMKmZKQy1qtQTsWaAnowFBnZWWso9GjNkJ7sv/6sRp4cCLmxF4iWu8UKGK+VZe/Qj9axPV X-Received: by 2002:a63:6ecf:: with SMTP id j198mr11134025pgc.3.1542910052152; Thu, 22 Nov 2018 10:07:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542910052; cv=none; d=google.com; s=arc-20160816; b=hNKiA2ATQEKRZX6Sm/f6lA2oU1/6GV6Df92uS8b+iVLmxRjzl2Bn29rtyhzNU7LED6 2RjC6FVhYtY9GTrZ3b3Sx3QiEpNTL4DkMOiXR7uRfidnyZ9nwGZTbJYwW0jXXPRgkoUt tzwarhdXMhpFods6wB+8zcfAeWXDutogTCT01IfuU+QUfviZIT7cm0SHbi2YzubksUxT LMb5onArIJxGHpDepNZsqbbwgASMRnZoRp6ye73Lhg0Sql/cTOpk2rmlWBeIGda1wrm/ 7DnSdfyUAJDTYfzqFXmlFmk+GbPUxWj81Iy+e2i3j++fI1sV7LKf4uWLRt/pWfu6WC/L WHFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=UTcK0Tdz3/MR2gcrzUfw/PeRDB/NhRN/NgkIKZCnbIY=; b=HmODER4O4EmsYEKcpI1HmfV0NtGRB+K/YBcaIxQl1RL0LtJzKBGDByf6CFEUDjpgAy 5uyPZg/k3Lu/c4Cfli7NPXSE9QwHf9+Bq9OdekSR/g10dqFqYeCFAG2B4DUT1PIbvGrf KvIiu2RH/fb1YOzh8hS761ybsauk3ZO93+RrWhGTAhSpynYhh4Z83E6SF/5T3z8R1g9q VdRP4YQz3qOOLzUppvJyM+bbdHIfX/vlMdbUO0AVvYjRs1hsnPRMMIDdC37pSGAYk8/3 DZneuocYAOetFeB41dDkv3N5K89zobOcoFdYVA4s41Il0099EmG1ZJHzA/1GNxwPHIH3 HMSQ== 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 j7si15606785plb.91.2018.11.22.10.07.17; Thu, 22 Nov 2018 10:07:32 -0800 (PST) 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 S2391950AbeKVPO3 (ORCPT + 99 others); Thu, 22 Nov 2018 10:14:29 -0500 Received: from mail5.windriver.com ([192.103.53.11]:53102 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729679AbeKVPO3 (ORCPT ); Thu, 22 Nov 2018 10:14:29 -0500 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id wAM4ZEmA012268 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 21 Nov 2018 20:36:10 -0800 Received: from yow-cube1.wrs.com (128.224.56.98) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.408.0; Wed, 21 Nov 2018 20:36:03 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Arnd Bergmann , Dong Aisheng Subject: [PATCH 08/11] mfd: syscon: Make it explicitly non-modular Date: Wed, 21 Nov 2018 23:32:56 -0500 Message-ID: <1542861179-8941-9-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542861179-8941-1-git-send-email-paul.gortmaker@windriver.com> References: <1542861179-8941-1-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_SYSCON drivers/mfd/Kconfig: bool "System Controller Register R/W Based on Regmap" ...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. 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: Lee Jones Cc: Arnd Bergmann Cc: Dong Aisheng Signed-off-by: Paul Gortmaker --- drivers/mfd/syscon.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index b6d05cd934e6..0ecdffb3d967 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include @@ -272,13 +272,3 @@ static int __init syscon_init(void) return platform_driver_register(&syscon_driver); } postcore_initcall(syscon_init); - -static void __exit syscon_exit(void) -{ - platform_driver_unregister(&syscon_driver); -} -module_exit(syscon_exit); - -MODULE_AUTHOR("Dong Aisheng "); -MODULE_DESCRIPTION("System Control driver"); -MODULE_LICENSE("GPL v2"); -- 2.7.4