Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3093749imu; Mon, 17 Dec 2018 13:12:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/WF64TPxEOHDrvPB452YzTf4poDsKvR7OTB+2/vF09xr6zG+0732VthEDrU1aKKWXZ4CMa/ X-Received: by 2002:a62:c505:: with SMTP id j5mr14192466pfg.149.1545081155176; Mon, 17 Dec 2018 13:12:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545081155; cv=none; d=google.com; s=arc-20160816; b=oetTMqbC7bKDP7PeJGx5u5l4gVc3ju4X08V5uqfepK9rSEJT5NGy54SekDB9FJTS+5 cuBDvS78ivgc+R9UKO0Zv6Rno6HSVDHIyEnmqFnx5d1Sz2lFP8dJTf5qPJzJ3t/Zeeln ZlZwK3wiXG42YXYdtRIdlWPlZ7EIOU/OlOs6XZ5satt85QltgIb+bJ3/xlPGV48V7ZcP lDeEix2PjCv5OoamxxMXUpDFS4HvcnNzj9eXZh0kvzl9MeV19pbirerZYCUJ9kocRNSM X2aw1q/VLg8E+KYLzKuJkzOhGINsgyQPL60AdVO05Ltm1ElHZiez76Jw9Fg40a5Qy3mM m/lQ== 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=gQYKMjZR0BRLa/YjzlZ1jDNFvNaJUvZcxajHmQvg0xw=; b=WowhspJi2YwtVbfQCBkjqzBTEyLRn2kbjfKSOb1n5VQpWsVAXJAWyOfo8VKpD1cj2P Xb3xPCqrXNdxc7gE29atDniaGJstG0mMOImo9wgC1fbQvzg1ox5/QIV4LJsusZ5LWCaE gy4oZDahGPAowW0Orvhxtbh38MGaV+yeXqSqFwodAtZTyJBlYhqP+kPY1FYhqU7oSEyd K2OaObePLne2CO7xPpZDnJcGUYjwxr7vmAyM+yHEDIv2j/jxWywMWaXlGkpEA7oAtj1k M3pAC+8O3vWJFVt9hSmFhjJfZ1k1M8flGyOG4qMoyzP7IHSy63pMI8cXgObADkBsSqsi 31Ew== 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 y10si11054304pgp.348.2018.12.17.13.12.19; Mon, 17 Dec 2018 13:12:35 -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 S2389621AbeLQUeL (ORCPT + 99 others); Mon, 17 Dec 2018 15:34:11 -0500 Received: from mail.windriver.com ([147.11.1.11]:45588 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727507AbeLQUeL (ORCPT ); Mon, 17 Dec 2018 15:34:11 -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 wBHKY9Pl011718 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 17 Dec 2018 12:34:09 -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; Mon, 17 Dec 2018 12:34:08 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Laxman Dewangan Subject: [PATCH 07/18] mfd: rc5t583: Make it explicitly non-modular Date: Mon, 17 Dec 2018 15:31:17 -0500 Message-ID: <1545078688-21217-8-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_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 Acked-by: Linus Walleij --- 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