Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1093571imu; Thu, 22 Nov 2018 09:59:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/VrnKurVvgIfSsK9Sq0Bu5VHieLhgaAOSq/3fB0JQ6xS+2D0khr9UCdqLtbfEgcED10Sv3P X-Received: by 2002:a63:d047:: with SMTP id s7mr10836431pgi.311.1542909598094; Thu, 22 Nov 2018 09:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542909598; cv=none; d=google.com; s=arc-20160816; b=EYfWgzL38MyJPeAGmNjalkz30kl+qUZ16LtPBTQW6gpSiEeM9VHpPV6DHJajGwolWL vsNYxha1Aogmjani1CHr7FaiYIxL+RnfHs0jaEk548+DJYHnLzsC/uLbhbZscjnYnUMg kAGtKAUnNz9lEsd+hvdGQfttXdo+FzOx8gimNt1e2IH+c5a+ywPZ34xC7PdVHl87z9Bs KMwcsfEH8v+AXID9/96OBNWIjp6QMvU/PKkQDZ2FcDonc3YciCph3dzLKoM4a5wKvPND Q6N6Gf0C0Egpn4VMeyclSjjJMy3WI27EqS2Ajb3A2QknSy8hZQegqf0tH/Runj1Kej3d 218Q== 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=bEZCPLS1520t1SSwdFlx/ivHbt4x1jRt+cKBGSxmoMA=; b=qs3WQeReO4AFm3Wz4IwjCUuxp4Qj/Wbqz/S3Xqu+zn9uis/z9lRM5lkbwdarHwUUBM wQmqz+UIJPOPnpPvMnMW3jTcpA4fY9yOXrXUdrqm1X9G1TZTERFHed8o0uG42cUfNNzI l3gfd0YTUUjR1nqrUoOdufqpLq4w5V/EAC5hJTcTxEJY/622/JK8mNqd0lq01eunG13k W//nz+QZksesWgVKExpiVjWZFOnMDQRpZkRvTktVCVS7KuQ6LXRP/nzSbDHZPUBttfX9 jIeBzRYyfDHDnge1qbA/yKorW+RVPjH7NG1/wQUnH7clDWihfzDd/vlcIzcfvdvdXIIu zGnw== 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 35si2895254plf.177.2018.11.22.09.59.42; Thu, 22 Nov 2018 09:59:58 -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 S2391662AbeKVPNV (ORCPT + 99 others); Thu, 22 Nov 2018 10:13:21 -0500 Received: from mail5.windriver.com ([192.103.53.11]:53064 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732270AbeKVPNV (ORCPT ); Thu, 22 Nov 2018 10:13:21 -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 wAM4XWFd012233 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 21 Nov 2018 20:35:01 -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:33:53 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Guennadi Liakhovetski Subject: [PATCH 01/11] mfd: as3711: Make it explicitly non-modular Date: Wed, 21 Nov 2018 23:32:49 -0500 Message-ID: <1542861179-8941-2-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_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 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