Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6514836imu; Sun, 2 Dec 2018 20:29:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/XTb8tJ9omO5+mlIS6N+JZ7z4dKPb5lfPn8UF0QIiEgRyOXG/henqP8KKxoF0V1hGJTPsVb X-Received: by 2002:a17:902:9a8b:: with SMTP id w11mr14176899plp.121.1543811364289; Sun, 02 Dec 2018 20:29:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543811364; cv=none; d=google.com; s=arc-20160816; b=Y4XAE/qx+DKpthNEefwWWgNa1s0b+H5H98wvngf3z8za+c/ctXGMLInwT3I1dm0nZl J3ryW4LDijh6j+vffg3UyD3v7YP5oIElreWFLbQHA7R1Su9fbb50vznBIgliO0+WMz1Y TNuaP6pjrrxWGPhYLNbXqA8Tj0l1lYZ6SFZukg2Z2YTONLAkcItJFkjdtUfEQSWlZyqO mG1x/ALKwRiLyBhg+xaXs+ugSq88NNOuuWoojeHFoaezaAW+1ADI5tz0643DmlC4YJaA GGVWIUuO2bWorujHUlg1dbsUVqXWGDyctj8MDwe46C6QAsvuUtUNRDclaGD40ErIyFqk kNmg== 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=OAZvU/ZdJORAihDueLvXKCwRQjdHXyFVgADpP307mYo=; b=q/o2VWoMEMgeSiV/xUFhoEJgUGgVJDQtCRNqaa81l5k2eMlmLo5Ji3aMJbIkxrxrJb F0/rKrysBukaY/3prORVz1hRhRuEnENnhHVVe98PiV0wO4fSitZ64KFFOozM3ePsxGW9 6ZSeteVCevt3WdrqswFDExMFvESJGdkw6fq0gmCi5aR3qfOX5ybBxM3WWFf7TkI0jXuO Po2uqjyuOsPSU2BsMMHGMrhuS8UagpDlbEXX81u+29i/WHZvBVsLAOL3Ui+MHV+lzG58 hT5FFINYzHRviErBIU9n391QD1lBEcRbRVukHLQ/sHx6cfKAb8A8sKdOB01zv/qb0Jix Ea3g== 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 y1si11950489plt.356.2018.12.02.20.29.09; Sun, 02 Dec 2018 20:29:24 -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 S1725997AbeLCE0x (ORCPT + 99 others); Sun, 2 Dec 2018 23:26:53 -0500 Received: from mail5.windriver.com ([192.103.53.11]:55236 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbeLCE0x (ORCPT ); Sun, 2 Dec 2018 23:26:53 -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 wB34PJnZ018227 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 2 Dec 2018 20:26:15 -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; Sun, 2 Dec 2018 20:26:05 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Laxman Dewangan Subject: [PATCH 11/22] mfd: rc5t583: Make it explicitly non-modular Date: Sun, 2 Dec 2018 23:23:18 -0500 Message-ID: <1543811009-15112-12-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_RC5T583 drivers/mfd/Kconfig: bool "Ricoh RC5T583 Power Management system device" ...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. 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: Laxman Dewangan Signed-off-by: Paul Gortmaker --- drivers/mfd/rc5t583.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/mfd/rc5t583.c b/drivers/mfd/rc5t583.c index fd46de02b715..c5cc5cb3dde7 100644 --- a/drivers/mfd/rc5t583.c +++ b/drivers/mfd/rc5t583.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -298,8 +297,6 @@ static const struct i2c_device_id rc5t583_i2c_id[] = { {} }; -MODULE_DEVICE_TABLE(i2c, rc5t583_i2c_id); - static struct i2c_driver rc5t583_i2c_driver = { .driver = { .name = "rc5t583", @@ -313,14 +310,3 @@ static int __init rc5t583_i2c_init(void) return i2c_add_driver(&rc5t583_i2c_driver); } subsys_initcall(rc5t583_i2c_init); - -static void __exit rc5t583_i2c_exit(void) -{ - i2c_del_driver(&rc5t583_i2c_driver); -} - -module_exit(rc5t583_i2c_exit); - -MODULE_AUTHOR("Laxman Dewangan "); -MODULE_DESCRIPTION("RICOH RC5T583 power management system device driver"); -MODULE_LICENSE("GPL v2"); -- 2.7.4