Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6513346imu; Sun, 2 Dec 2018 20:26:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/UI6GvD8NrwSXxewx+u78dMQqRyGI/OEIAc5lrTV3hMa93Tzs5Z1iroSVj57sKvU2fRwUqx X-Received: by 2002:a63:e445:: with SMTP id i5mr12057493pgk.307.1543811192631; Sun, 02 Dec 2018 20:26:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543811192; cv=none; d=google.com; s=arc-20160816; b=z8/+QH/Ii1yFymtIzxwPtj4Cw3wQZLMoubDTAShFVdlDr/iqwZx9nnpwBR8rdVALuV Tt464HeM4QOQueXXULR9zSXWa4aPMz6cE9yI1tWhCzJRuRTYmHyqog/XdUfCv9OsseCA Qgb+JrmB9gJ6/6E6z7t1ShlUUq0CEQd2lea86mchahUo4wW+TBdjX6MJvKuNplMp0oxI BHlX0JTUYwyCTh8WdxsJKjH8jP4QDr8z4F3hmATS6Q+dVTHR6u8ZvYQs900vYDlt4qnv Xqir30fF2TWoTrz5FQr/CIX2tNlq49rpwlLg+MbVZSP9O0gMoBurANYt6WUfncaiswAh IkZQ== 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=t+pgHXYBUzpGAWsAYB6AJLoIitwRSftsO+S2mUbX0W57pGb4VDWtXfSBCZ21Jcj77Y xZ1oyP6lySOdhLQSAxyXYUP9rj1xjvLKrMCkuk4j6NEVXE9G4gk2AqzbmhMYeTtHIIlS MkYu93lwMEDuxXelFN1P+c2U2c8N08e9hYtXJlZxrcFdHu/TuskSZQqCIheHneUKcKXh tBZf70La/G9eyEodxF6NPzDcZYP8UbOpwjJoR+wh9/VFjgYdJ5xxEkWscunOXxVdT/ZP uz8wMorPr0YThhw+687SE7swK4RYluHXMGGpECYYi1g0gPX7IdqTSWzFe+P4XdyBFJ/I 9Ntw== 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 w5si4939850plz.419.2018.12.02.20.26.18; Sun, 02 Dec 2018 20:26:32 -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 S1725909AbeLCEY0 (ORCPT + 99 others); Sun, 2 Dec 2018 23:24:26 -0500 Received: from mail.windriver.com ([147.11.1.11]:62499 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbeLCEY0 (ORCPT ); Sun, 2 Dec 2018 23:24:26 -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 wB34OHCD026562 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 2 Dec 2018 20:24:17 -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, 2 Dec 2018 20:24:16 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Guennadi Liakhovetski Subject: [PATCH 03/22] mfd: as3711: Make it explicitly non-modular Date: Sun, 2 Dec 2018 23:23:10 -0500 Message-ID: <1543811009-15112-4-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543811009-15112-1-git-send-email-paul.gortmaker@windriver.com> References: <1543811009-15112-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