Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp995534imu; Fri, 7 Dec 2018 12:18:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/WEPGHj3bTssUytTumNcFds+jkGSvxN3aWENeO1XBgDGaWYTGrI9yXTu68+sE6NXJQ/aeLB X-Received: by 2002:a65:534b:: with SMTP id w11mr3185650pgr.125.1544213915308; Fri, 07 Dec 2018 12:18:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544213915; cv=none; d=google.com; s=arc-20160816; b=wCb+cHITOu66He3bEdwCNaiQIgz00+TFAS5thBri8NMirtILHr9M4/8/NaB1J2sVxr O8oTFoKblnPyWNB76fnufbIdW8m0guF6As9op5XlrZ5cmkrLuNhVjEyOnfahI9HKBuPs 5fzGdvqH0QrMvY62375HYStNSHWOtjoBJp0V+tExQC3q2TrHRDSmqejpGC9bjJEJH0Zz EPXDW3ZKgENgIysbr9fkRzjSizTlItMV9tc+rKLG/yXteusr5uB3LPvq7ItHFxs3kb9y 9n0d0Xk2LXo1Zpjxd9N9AX/jb6agAHQ9k+JX3Bg0XM+HH3g2Xz42PVfh8UC1D5QAwD/h bPRA== 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=sf8pDVd6QbzoOGK8neUds+DJOVC6Mf7FMnGww8FXeck=; b=ivM1Kwj3ds2naB6FkLKc4cTgvCv8xEO0/kqHRnZ8A6A6tLcNDaz+wrQLRbBQUJzrGP KblUlRW4YRj1u6fQkSa4JbQwWiP//b0QIzU4+GrFk0HrjmLWc871FbL+9fx8jD1NQfQH UnLN7qC+3SRa8inxYM4Q0miF71rrY0pOInAwXPZl7yfkBPXsAFf5Uu7bMlKjm3lEoXPG 4uSkrYkHK3uXm8/++qZQz+VQkfMlER1LAui9dsqhP/3omum0RQd56lhSHY0UrUE64iDP ZJFi6op8EAlhrG5BkP5P94UgQxjnt1A/IjDB5ioAS1lc/Hajp7PiH7qQmG6+7ktuBDVT bY8g== 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 bj2si3492964plb.27.2018.12.07.12.18.20; Fri, 07 Dec 2018 12:18: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 S1726425AbeLGUPv (ORCPT + 99 others); Fri, 7 Dec 2018 15:15:51 -0500 Received: from mail5.windriver.com ([192.103.53.11]:59222 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbeLGUPt (ORCPT ); Fri, 7 Dec 2018 15:15:49 -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 wB7KEVlk031359 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 7 Dec 2018 12:14:42 -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; Fri, 7 Dec 2018 12:14:21 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Tony Lindgren , Graeme Gregory , Jorge Eduardo Candelaria , Subject: [PATCH 11/18] mfd: tps65910: Make it explicitly non-modular Date: Fri, 7 Dec 2018 15:10:58 -0500 Message-ID: <1544213465-16259-12-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544213465-16259-1-git-send-email-paul.gortmaker@windriver.com> References: <1544213465-16259-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_TPS65910 drivers/mfd/Kconfig- bool "TI TPS65910 Power Management chip" ...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. We do delete an unused moduleparam.h include though. 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 was (or is now) contained at the top of the file in the comments. Cc: Tony Lindgren Cc: Lee Jones Cc: Graeme Gregory Cc: Jorge Eduardo Candelaria Cc: linux-omap@vger.kernel.org Acked-by: Linus Walleij Signed-off-by: Paul Gortmaker --- drivers/mfd/tps65910.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index bf16cbe6fd88..aa3d472a10ff 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -1,5 +1,5 @@ /* - * tps65910.c -- TI TPS6591x + * tps65910.c -- TI TPS6591x chip family multi-function driver * * Copyright 2010 Texas Instruments Inc. * @@ -13,8 +13,6 @@ * */ -#include -#include #include #include #include @@ -374,7 +372,6 @@ static const struct of_device_id tps65910_of_match[] = { { .compatible = "ti,tps65911", .data = (void *)TPS65911}, { }, }; -MODULE_DEVICE_TABLE(of, tps65910_of_match); static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, unsigned long *chip_id) @@ -527,8 +524,6 @@ static const struct i2c_device_id tps65910_i2c_id[] = { { "tps65911", TPS65911 }, { } }; -MODULE_DEVICE_TABLE(i2c, tps65910_i2c_id); - static struct i2c_driver tps65910_i2c_driver = { .driver = { @@ -545,14 +540,3 @@ static int __init tps65910_i2c_init(void) } /* init early so consumer devices can complete system boot */ subsys_initcall(tps65910_i2c_init); - -static void __exit tps65910_i2c_exit(void) -{ - i2c_del_driver(&tps65910_i2c_driver); -} -module_exit(tps65910_i2c_exit); - -MODULE_AUTHOR("Graeme Gregory "); -MODULE_AUTHOR("Jorge Eduardo Candelaria "); -MODULE_DESCRIPTION("TPS6591x chip family multi-function driver"); -MODULE_LICENSE("GPL"); -- 2.7.4