Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp990822imu; Fri, 7 Dec 2018 12:14:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xdv783oMsN/q8rpMbhRSYmmh6xO1B+BWLYpLJ7tLjIQYwqPqe58Pucy7BCZssVXwbKaLhm X-Received: by 2002:a63:eb52:: with SMTP id b18mr3072099pgk.213.1544213640318; Fri, 07 Dec 2018 12:14:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544213640; cv=none; d=google.com; s=arc-20160816; b=q0XYCr86HQ8LZtB3fTyMfm39ayFB/m54KW2Meu5Kl1MIfyvhq/duLi/Yf/dqYrsdD9 gnM+0u8J6+PDlp9J1gmRzqjOrL+le6pDqAD6vACc+3pfi/lVq0oJoUC0YysJCvepI0ob SPBbACA62vxtZVfGoEsUqsd/0LqcM6xJmITeZjuW5QFYPTKXfiDwOi+d7HNMFg7+b+W/ U2sJ70vZWb3cpZeG6kXMYlgtZGhVKogEz9rCcny/e9vvHCDeHe/y8EfOCVgTuzSjwXCm 2wW4EtHqDEGUXrkqXegTjN4MYq7byLxjWr13hkqogmBqMNbGqkSd+AECCXxVR1LCm/z4 54HA== 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=FuIGtOOCm1xkxMVZnvE86LVNiaHwpXxORXXye321GLw=; b=T8qGVy5jF3Q9xlyb+japk2UlT466HdIcwEb7QnQTtyY3zLSsztH/ekAzbEIPaWm4XT 9fcz65JVFRp/RyTmNuw99X2+AlqdaqDckIJtjq/dFwTYjiO1xqzyPFveudCvp6BM7ZBw Bn8ybRgGA4Hn8pb98L9ohWu9giWN9qw6dfuHu2ycFcgSqPAFVDIgQ/00GI0umVhDAmtr 7yVn7Z4/TQzdIfHJHdZqU+Ggc6UEZXXrsOsgEDAPtbLUf5YgUHfD+sH5Q8FusX6aTgGC qlo+oJc6msM6J81lK6yUHoYHHiq2UwqJKajOj6q+n70yTplsecdoSRZUINHsP3/cil1T WRcw== 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 c132si3592297pga.597.2018.12.07.12.13.44; Fri, 07 Dec 2018 12:14:00 -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 S1726079AbeLGUNI (ORCPT + 99 others); Fri, 7 Dec 2018 15:13:08 -0500 Received: from mail.windriver.com ([147.11.1.11]:61039 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbeLGUNI (ORCPT ); Fri, 7 Dec 2018 15:13:08 -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 wB7KCxXW023103 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 7 Dec 2018 12:13:00 -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:12:59 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Guennadi Liakhovetski Subject: [PATCH 03/18] mfd: as3711: Make it explicitly non-modular Date: Fri, 7 Dec 2018 15:10:50 -0500 Message-ID: <1544213465-16259-4-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_AS3711 drivers/mfd/Kconfig: bool "AMS AS3711" ...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 don't replace module.h with init.h since the file already has that. Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. 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: Guennadi Liakhovetski Acked-by: Linus Walleij Signed-off-by: Paul Gortmaker --- drivers/mfd/as3711.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/mfd/as3711.c b/drivers/mfd/as3711.c index 67b12417585d..7a74a874b93c 100644 --- a/drivers/mfd/as3711.c +++ b/drivers/mfd/as3711.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -118,7 +117,6 @@ static const struct of_device_id as3711_of_match[] = { {.compatible = "ams,as3711",}, {} }; -MODULE_DEVICE_TABLE(of, as3711_of_match); #endif static int as3711_i2c_probe(struct i2c_client *client, @@ -202,8 +200,6 @@ static const struct i2c_device_id as3711_i2c_id[] = { {} }; -MODULE_DEVICE_TABLE(i2c, as3711_i2c_id); - static struct i2c_driver as3711_i2c_driver = { .driver = { .name = "as3711", @@ -219,13 +215,3 @@ static int __init as3711_i2c_init(void) } /* Initialise early */ subsys_initcall(as3711_i2c_init); - -static void __exit as3711_i2c_exit(void) -{ - i2c_del_driver(&as3711_i2c_driver); -} -module_exit(as3711_i2c_exit); - -MODULE_AUTHOR("Guennadi Liakhovetski "); -MODULE_DESCRIPTION("AS3711 PMIC driver"); -MODULE_LICENSE("GPL v2"); -- 2.7.4