Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2868956imu; Sun, 13 Jan 2019 12:02:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN6eesgUou3/JdAbyuC9sEXtYsYwv7mHUwIU5op7NvCPDKmYEWcH/ImfV6MdWiU9ylLhbpBC X-Received: by 2002:a17:902:d90d:: with SMTP id c13mr2935868plz.31.1547409749395; Sun, 13 Jan 2019 12:02:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547409749; cv=none; d=google.com; s=arc-20160816; b=g0ruvmF4MA9WeYXKRX+4GD9tgdXcT4Iuvy1QfZwnaFPCrcdNN9gcLr6aDxK2Y8lOub OTWeQS2k13wV07eMLC/EXWLePrWA8Wj9KIKuzoMRhyZlQ+zUrmnE14Op11ZVeAkYLNKV 7NTRrgzgLBfkMyMgTK1B33zxdFv5CZwJxv+4cXjt0SXbCY6hWGTHTcw3Mg4oPrvtvCae MQWfvNa4wwlgw6ILycpX1lwzfJWmelYEjOMjGwM16ys0zImSjIj3Ii+d548lv2LbPI0L KYFUx0YGIEF8VyqRyoGSRo0ta+uduai1z0ftI0u+HyB8AQ42quDB9BoWwSAAagf9M6NP BjPg== 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=dl3uN8fMuby3NGKb81WMk1FoJO7/T8rT/Oorq1WcqmC/2AXiannOiMIjJOnNT73IjX 6LS9/JmBvKaxXb1DFnJ8TX/oVVLC0/ouZWXYiDKQW7d3FAZ3xVn+YjBxTZEFdDVd+J4Q hGmWdFZ4714qmH17Bp0i2CJYrapU46pUcHgqwkRr13wyQDcd+FvJ6KgyGbsgk3nFyOsT 2U3zl9cX1KgU1bcII/4+FKJWDqkpJgHS/B3sI0XjqQACJ3ExiOxrX0pLZBF+254PZk23 kB7y6s9TFiZre24pfrsFNWdhaZ5hKJrkFi6uonUva7nnVNWDmbngdeCCoGUBjD28QKSQ b83Q== 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 l12si59616807plc.0.2019.01.13.12.02.14; Sun, 13 Jan 2019 12:02:29 -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 S1726591AbfAMUAG (ORCPT + 99 others); Sun, 13 Jan 2019 15:00:06 -0500 Received: from mail1.windriver.com ([147.11.146.13]:50247 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbfAMUAE (ORCPT ); Sun, 13 Jan 2019 15:00:04 -0500 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id x0DIbbkP026182 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 13 Jan 2019 10:37:37 -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; Sun, 13 Jan 2019 10:37:36 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Guennadi Liakhovetski Subject: [PATCH 03/18] mfd: as3711: Make it explicitly non-modular Date: Sun, 13 Jan 2019 13:36:34 -0500 Message-ID: <1547404609-14161-4-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1547404609-14161-1-git-send-email-paul.gortmaker@windriver.com> References: <1547404609-14161-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