Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp991766imu; Fri, 7 Dec 2018 12:15:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/UhLfUnrvlEtOpnWa25N8xYafoZ+919KWdRMbMteja0+p6u9gswnkN/4lxsr5BaULm6vtWG X-Received: by 2002:a63:f959:: with SMTP id q25mr3171386pgk.315.1544213700897; Fri, 07 Dec 2018 12:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544213700; cv=none; d=google.com; s=arc-20160816; b=0hsxPIdZ7rTShPKbgChMUX/nbMhc0LT4z2nGp7m6qKS1zGQFHecbokJeCEPi2WZOhc qLOdr8cFlsGzYAXM6ZMWGXIIsmq1AVsPRo5rZxjIBcgNs+I6fo5ScSMwMoADparHf2DC 3IkwcctUvy6TMmivSVEc2mSMmX8Jx61Ok2sCjhnDPaM/Ks2f0TGGks5bAS6UEMhyAd3O ZWuHWA7Pq1Nx1mtXO5Oq6WgBebhmQ6vMGdOHRbVi6+0mWEDZZkrUMxiOqMcFqqsL3XzG 0cm+OL2uhgZBRwe2vI48ErbF9xrRm5C1kOQSuP4FJCB8B1fvQcKu7/3aPh2o+zs+ddpF Rxvw== 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=oKstsaCCzVrHHfflH3O3n9elPn1jV6mMH7eEZXLlLwE=; b=dhuSl3wM387i6ts/CEed4HBOpXnOgZ/ec0f6OWKBOerUCrIxWCJA6UxjoUnGkeE1oI +uPpDrqIFTqDg3Nl22mPS+OSIvksIZMFlZb/sz3i/auC3R2aONnReX/52mt4TOivqCsf HbP2ETabzxZkb0es3T4SXwkhxA9I4smt3sTcwoC7JIuDMjDUNMH9L/y7NSAqJZzqFRxA aszXO89fml3dTtN0l+TI5wRC8c1s+L2iF2Axk+ltVJuxDblBLGrgiOsDo3X9Ez3ZQ5Xj nDE4LP7nKGxtrpW43P5hJbMILKj3cmqv1W52iPVkV/PUbSlM8yPkm2j+Ldp6+nO+9XNN 4plg== 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 b8si3743473ple.185.2018.12.07.12.14.45; Fri, 07 Dec 2018 12:15:00 -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 S1726182AbeLGUNl (ORCPT + 99 others); Fri, 7 Dec 2018 15:13:41 -0500 Received: from mail.windriver.com ([147.11.1.11]:61068 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbeLGUNf (ORCPT ); Fri, 7 Dec 2018 15:13:35 -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 wB7KDXTJ023164 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 7 Dec 2018 12:13:33 -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; Fri, 7 Dec 2018 12:13:33 -0800 From: Paul Gortmaker To: Lee Jones CC: , Paul Gortmaker , Cory Maccarrone Subject: [PATCH 05/18] mfd: htc-i2cpld: Make it explicitly non-modular Date: Fri, 7 Dec 2018 15:10:52 -0500 Message-ID: <1544213465-16259-6-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 for this option is currently: config HTC_I2CPLD bool "HTC I2C PLD chip support" ...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 translates to device_initcall in the non-modular case, the init ordering remains unchanged with this commit. 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: Cory Maccarrone Cc: Lee Jones Acked-by: Linus Walleij Signed-off-by: Paul Gortmaker --- drivers/mfd/htc-i2cpld.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c index 01572b5e79e8..af3c66355270 100644 --- a/drivers/mfd/htc-i2cpld.c +++ b/drivers/mfd/htc-i2cpld.c @@ -27,7 +27,6 @@ #include #include -#include #include #include #include @@ -614,8 +613,6 @@ static const struct i2c_device_id htcpld_chip_id[] = { { "htcpld-chip", 0 }, { } }; -MODULE_DEVICE_TABLE(i2c, htcpld_chip_id); - static struct i2c_driver htcpld_chip_driver = { .driver = { @@ -643,17 +640,4 @@ static int __init htcpld_core_init(void) /* Probe for our chips */ return platform_driver_probe(&htcpld_core_driver, htcpld_core_probe); } - -static void __exit htcpld_core_exit(void) -{ - i2c_del_driver(&htcpld_chip_driver); - platform_driver_unregister(&htcpld_core_driver); -} - -module_init(htcpld_core_init); -module_exit(htcpld_core_exit); - -MODULE_AUTHOR("Cory Maccarrone "); -MODULE_DESCRIPTION("I2C HTC PLD Driver"); -MODULE_LICENSE("GPL"); - +device_initcall(htcpld_core_init); -- 2.7.4