Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp993888imu; Fri, 7 Dec 2018 12:16:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/WIMnFEVC2VNPfawpAxyXDz72FViG5txgjIkr6QbK9SC6doT4Fy3feOZOjJLoML8DRSqdXb X-Received: by 2002:a63:f34b:: with SMTP id t11mr3158487pgj.341.1544213816258; Fri, 07 Dec 2018 12:16:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544213816; cv=none; d=google.com; s=arc-20160816; b=AuGPRwtukgzh+MZYBCJeJTKyX4v3/rSAmA/OC4fVqCKXnA+a16ElOzkQQv23hnLdZh kf6LSBH5jfVydH68qSi5AM3xEvlb0OxU/XIYYPAWSYoAkbSkepIwEbtPtg1aaa3MZ7pV 0WoLVICaDbt1mqrlaOTgYQOi8969bpVdvRJLym63sBzbl2Pa49TO+R8lnPyjm+PXLgLG ovpLhDdfnClvA9JB6LeFf3En6hz6PyvRRw+eOCRoreUDhXToSguR9RbDVj5UbEyxv6bs +gu400C1H9wRbznvaQEGHVsQmRYiiUh3en6OwhjPrlQK3hbjMOL2lX3atJ9lAW04GUKo /CtA== 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=6kfDHJrmzkmP1/tTFI53rOsAF7chJxPeHnQtk9gnlfU=; b=FKAfwv6rn/Hy/jjT4Lq3GPszZoAlCXCEfAar4KdfsXOnM3jPMpgwYjLAqIDcd7J2o7 EvsLpqCFxPsLggA0WV+SYDqrQL5ID2bG2/aunThSmC3OXhCFyq34PvwHJ/ZR4ZlquJN6 VLiaD7+7pVHKiBZZ/BQDqCx79f/GVwAc4NjeSRTKcQ3WPgtaH1b2BM7yc6hWBIxYJ3H3 +8nHrtjdGZcm+NxxzxDWbPajel5ER43wOEYP+aAxN0csCYoOOoXSb2dVUAIcEccJmZby 8eu+snKw7yME9l5ERvX57TWprxw3qp/C+BRbJqr7Na025yHttrFyWhLOv+V9HqfbrhZ8 iZCg== 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 b3si3554757pgh.496.2018.12.07.12.16.41; Fri, 07 Dec 2018 12:16:56 -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 S1726213AbeLGUOZ (ORCPT + 99 others); Fri, 7 Dec 2018 15:14:25 -0500 Received: from mail.windriver.com ([147.11.1.11]:61122 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbeLGUOZ (ORCPT ); Fri, 7 Dec 2018 15:14:25 -0500 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id wB7KEI6d023231 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 7 Dec 2018 12:14:18 -0800 (PST) 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; Fri, 7 Dec 2018 12:14:18 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Arnd Bergmann , Dong Aisheng Subject: [PATCH 09/18] mfd: syscon: Make it explicitly non-modular Date: Fri, 7 Dec 2018 15:10:56 -0500 Message-ID: <1544213465-16259-10-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544213465-16259-1-git-send-email-paul.gortmaker@windriver.com> References: <1544213465-16259-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 Acked-by: Linus Walleij 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