Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3094158imu; Mon, 17 Dec 2018 13:13:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/UrWTrXFtgxmL9EHKQVDXrgP4bnFrvNpuCw6bXbnydgw7DSR90V6LbFeEunYTzJOqddk/Dp X-Received: by 2002:a17:902:830a:: with SMTP id bd10mr14125000plb.321.1545081181726; Mon, 17 Dec 2018 13:13:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545081181; cv=none; d=google.com; s=arc-20160816; b=Tu+Q6jj9Em1FBEPntMPouiWGetjDl6rEWMF4VDb2sYiThATTMHwOJKo4q5Yq34ZWpo LzvLGXxDbRo5dU3+VIW9fZxu7VrKmWA6kUFCztLXso34bbpHaT7fSCvdw3HAtRCFTPv7 1VEOiGoyJxbZiQbEdPnQz/tJHZGq6pJgOXhdbaCUfSKR71aOHd4rIIJph/f2gs4uAAIh ngQK4cS+Ve+v73ESH12sIIkSyGUYVbElmuUWhXrdFiM27qSafnfCHofwf3lliyV2U5nV jVqCqARLJDtQTxbus1a6i9N+ziJSIS+EtXOijjZ4AzwWWKEw2ctyiAxvCyYsSse6NOmF yJig== 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=GAy1hHqpS1RUKRmRVWNwW+Go7F5aAPQ+pXp005y8ZB4=; b=QwYvnxTEVPyRXtgLiV5i0c/PJTUQC/89UwpBxMzRQoKLNR4SzByZUzeXdPXidgHT6Z f4j8AQO9E0cqBVLlxtZh6OZ+SJKJpmftqDEWtnPkHFZM6xqrfXkekBonXBKqLA38gWNO tVKGuTYI5qtFRRPgrFYg9L6kXuyEludDNT5Y4WR67QbVNjsMNsYWbGfGWevNX5Ske3uA AhwyaZ1DD2Qj5ADs0qHd+uOpLgDJqkYn/blMpuPW0xqVoVPrdoNAngYxk7zGIxhy9qpc 6cpfT5Hl6w9SW9FsRFRENf+P04MXDd+//LXXYzF9sVeELfKi8T/7yu8O4RSFnqdcdgb5 +WdA== 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 a18si11476192pgj.77.2018.12.17.13.12.46; Mon, 17 Dec 2018 13:13:01 -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 S2389632AbeLQUeV (ORCPT + 99 others); Mon, 17 Dec 2018 15:34:21 -0500 Received: from mail5.windriver.com ([192.103.53.11]:42732 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727507AbeLQUeV (ORCPT ); Mon, 17 Dec 2018 15:34: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 wBHKVPCn030247 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 17 Dec 2018 12:33:34 -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; Mon, 17 Dec 2018 12:33:22 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Guennadi Liakhovetski Subject: [PATCH 03/18] mfd: as3711: Make it explicitly non-modular Date: Mon, 17 Dec 2018 15:31:13 -0500 Message-ID: <1545078688-21217-4-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545078688-21217-1-git-send-email-paul.gortmaker@windriver.com> References: <1545078688-21217-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 Acked-by: Linus Walleij --- 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