Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3091483imu; Mon, 17 Dec 2018 13:10:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/UBP9h6QkxV3b6mOPv1FOEMzs5eeIJz7vZHjbEJ2D0sCWdJ7ZcubWZonKDqt45KCsT6yVlS X-Received: by 2002:a65:584e:: with SMTP id s14mr10197594pgr.142.1545081012375; Mon, 17 Dec 2018 13:10:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545081012; cv=none; d=google.com; s=arc-20160816; b=O3Y8So0/bXOWrETNtBgaf0sVmJ4dbajzKNdVNyfSC1Or0VZUc9QSSQVQmSqFoiKfag A5kxq6HCL89iGgFokqz0icaan/UcJKPQGcKEOkOYKk/xYbJ2kMIQ83hhrW82ibu4X6/P ZIW9kebX6yCKzmrkHMYoA39LqNILDoH9ObyMB4ViTLG8ONX8HJ3admniOKrIMQbh5yW6 3Fzgk24EldKrPS/kBq8Fex/h3b4huWgJKZ0YNt2lFFZVsaCLf8XiqIhWdPiVo50PCDUm DvpoFwGk1T7ap1Ce4jWOT/fpd81xsmT2JyDrgnM1T+u6q7a0MpBHwgbpDUyGAFVbQ4BH QvRw== 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=g8IW2lK2YJ3YCra4YxiTbRrF5U2VRsAueFnz+VezOwo=; b=k3JpY0I7mQ9A4487Nn4JEfT7zG95+2wCEQYKrTV+0gZ6PmyqRFEIveabRezMua1rU3 z49lTBfvjNfl2sDdnvtOxwEpvtbRUJqCYzp9WhmJ9DEFMd33iBcS04xXkNfi7W9893+H LOAmmGFgZcfuS9iYRNoU0DeXxY8L3hCbuEnNUVb/VThUupMtqpkwKMcF3Zt+xwAA70Z9 f5zfXXaAAmM0kkilD8glIM0ScYfe9FemFrFBfBbd7HH9qFzFB2LCEiGww/yhrwT7Fke9 PnXqmpyxeZ2yM59RnNRpUfGasmG8y5va1AQski2OnUoRxDU6mFd2hRiTQaTdgdXm8sU6 GJug== 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.09.56; Mon, 17 Dec 2018 13:10:12 -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 S2389580AbeLQUdo (ORCPT + 99 others); Mon, 17 Dec 2018 15:33:44 -0500 Received: from mail1.windriver.com ([147.11.146.13]:53253 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727507AbeLQUdn (ORCPT ); Mon, 17 Dec 2018 15:33:43 -0500 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id wBHKXa8H011049 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 17 Dec 2018 12:33:36 -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:33:36 -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: Mon, 17 Dec 2018 15:31:15 -0500 Message-ID: <1545078688-21217-6-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 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 Signed-off-by: Paul Gortmaker Acked-by: Linus Walleij --- 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