Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1718273imu; Thu, 22 Nov 2018 22:23:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/X/XStd6qG1F2XP5HZXrCSk3qHMP8cI2LaV6+yi1i/x//ALjTEIjhOVcHXR/YmHOXG6gXji X-Received: by 2002:a63:f959:: with SMTP id q25mr13017932pgk.315.1542954209536; Thu, 22 Nov 2018 22:23:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542954209; cv=none; d=google.com; s=arc-20160816; b=VAmAA1s6Z2VkfSCix1fs6mR2414pfxMKqwxuKmJRPTxSC8YzbQvAONSYVNdsZw0Yip Tq/ZKjEJ70HkNpZIQI86JzR2EDmB+wpT9xoJcYPwgC56seQ0t1um5DfkmSnWi7mSOBYx tLyEZvcBXtb7g3WbZJVR0N3LaWBHa7Ry2nXaurhUyjmDjmjCr0Gg4nODXJVPyu/rRERS 12F9t0KxhUK8cHBOFS+6vjObJpwMOnlshMGlA4Li4dnSJe5JQwqIUYPt4PO0JdrU+Ata dkEHFzP1tytcZnInfuu9TwSjIpU/wy6r+/0RfRSJ1syuDEJzMmhQ6og8F2y4gTw3Rfoz 9vlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:references:date:in-reply-to :content-transfer-encoding:mime-version:cc:to:from:message-id :dkim-signature:dkim-signature; bh=mhhWAt9m3BcOFh7Z7sVRFf0ZeOaTRktGCxTzbk0QATE=; b=VNcXHZq3o/ZZsIkiHDyUqGBNazJzK41Xn7j2k9V18abOT6ShZTTeV2qnnyoTUCTjJC Dg3iQ+wk6jtUWBFh+4I6ZNO7edfeW9ZYU3Z2oDwAwMadq2vvRUUBsaXmqtRTrJwmnWiw H5c15E7bheiFaHBYmDvEHgA+2pXNsnLGWWEjc3bk1EFeKBBLmwy7YagSxD7OvQLOfRuI fOcjP6fJOElxvXz/1mgXYZ2rjjIFftkXoRom9sOcq1Y70iy+pf01+AgXHLOA+mHofOch c2wR3fcqu+VVyfAV4HhoT82owwQ4PwbLBuzOC2UPQGU+WuYjnbACM+sHoHeMWu/higJO FoKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@slimlogic.co.uk header.s=fm1 header.b=rFI+KvXj; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=o6qhpygC; 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 u23si29416862pfi.175.2018.11.22.22.23.15; Thu, 22 Nov 2018 22:23: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; dkim=pass header.i=@slimlogic.co.uk header.s=fm1 header.b=rFI+KvXj; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=o6qhpygC; 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 S2393281AbeKVTer (ORCPT + 99 others); Thu, 22 Nov 2018 14:34:47 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:54749 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731714AbeKVTer (ORCPT ); Thu, 22 Nov 2018 14:34:47 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4AD9E228F1; Thu, 22 Nov 2018 03:56:15 -0500 (EST) Received: from web4 ([10.202.2.214]) by compute6.internal (MEProxy); Thu, 22 Nov 2018 03:56:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slimlogic.co.uk; h=message-id:from:to:cc:mime-version:content-transfer-encoding :content-type:in-reply-to:date:references:subject; s=fm1; bh=mhh WAt9m3BcOFh7Z7sVRFf0ZeOaTRktGCxTzbk0QATE=; b=rFI+KvXj0ksPUkSUvZ5 Vl8vwTrjbkZEigDI1QcQ7rR6KhEXcusYi2/0unRY4S2RMno1JZ25Nv+rMlqzRtUH vSOwCUbtSljXjdC/zMCw55wehH7/Y8bWQlX7nt3xD2BX5++y2TDpVsEECVPugWMa fl3l2OzIVjVJJG+OjPuAf3l9C4sRvMq/C+zhvncHN7GopMeJltKsnSm419odHR/y cHLjagZcXMc50NFrZNg9axUBGHWcAJQ3KYZa+Po9NrrPj8umkceZgs2vV5IB1acX LrZmNcK3uiuEQTCNGon+MuhbNyUter7Eh0oixh/IcHrI7fcM5a8YcvHpYpEhJ6J+ bFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=mhhWAt9m3BcOFh7Z7sVRFf0ZeOaTRktGCxTzbk0QA TE=; b=o6qhpygCdKoxa5wqNGHURLf/UY3/x7ZpacTrUCJAsY6Rk1SM8n7w9D2OZ OxMZBzbDD22G9BGP4C53p5GX8tZ/8LIijaewS4LmT5XvybiNHlenllQvJlhqFm6O 8xO1CnE/M0KaNVANywQTyBOfqsTIgGkHHYoJcVsPwssQ5DQuoqHgzaIFxwUZCcyN 94h7BxkUi7IesolBehPprgMZN13Tl0TlQUjZ3q7U+DSfbiClCyFbCyl5afwXnBbY aY/W2lq12RUF+Ek5/tygYd+5F4ZHwEeos487pohORX/SzRc6+o6gVGlj9ceIPCBw Wdek37YYA754gW/Ix2jlEnRS3n29A== X-ME-Sender: X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 99) id DD778BA7C4; Thu, 22 Nov 2018 03:56:13 -0500 (EST) Message-Id: <1542876973.660187.1585411488.20C3DE15@webmail.messagingengine.com> From: Graeme Gregory To: Paul Gortmaker , Lee Jones Cc: linux-kernel@vger.kernel.org, Tony Lindgren , Jorge Eduardo Candelaria , linux-omap@vger.kernel.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-3449945b In-Reply-To: <1542861179-8941-10-git-send-email-paul.gortmaker@windriver.com> Date: Thu, 22 Nov 2018 08:56:13 +0000 References: <1542861179-8941-1-git-send-email-paul.gortmaker@windriver.com> <1542861179-8941-10-git-send-email-paul.gortmaker@windriver.com> Subject: Re: [PATCH 09/11] mfd: tps65910: Make it explicitly non-modular Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Nov 2018, at 4:32 AM, Paul Gortmaker wrote: > 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. > This is all fine with me. Acked-by: Graeme Gregory Thanks > Cc: Tony Lindgren > Cc: Lee Jones > Cc: Graeme Gregory > Cc: Jorge Eduardo Candelaria > Cc: linux-omap@vger.kernel.org > 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 >